| 
      
      
      From: Rildo J. C. P. <ril...@gl...> - 2005-03-28 13:03:52
      
     | 
| Hi Mahesh,
Mahesh .P. Mallia wrote:
>Hi all, 
>I am using TinyCOBOL on a local Linux FC3 distro to
>compile my cobol progs. I need help regarding the
>syntax to be used in the FD statement. How do I bind
>the cobol file name with an actual external file in
>the file system. 
>I have tried SELECT myFile ASSIGN TO DISK and then  
>FD myFile LABEL RECORDS ARE STANDARD EXTERNAL FILE IS
>'infile'. This gives me a SEGMENTATION FAULT error on
>compiling. If I don't give the external file clause it
>throws the error that no external file is assigned.
>How to solve this ?  
>All responses welcome. 
>Thanks!!
>  
>
You must declare your file name in the FILE-CONTROL section like the
example below. The FD clause is just for declaring the record layout,
not to assign it to any external file.  There are many examples in our
test.code directory.
FILE-CONTROL.
     SELECT myFile ASSIGN TO "infile"
     ...
best regards,
Rildo
-- 
  ------------------------------------------------------------------
  Rildo Pragana                   FPGA/uControllers * Linux * tcl/tk
  R.Joaquim Nabuco,92/1102 Derby  http://www.pragana.net
  Recife, PE - Brazil 52011-000   +55-81-3223-5694  / 8837-6122
 |