COBOL compiling error for depending clause



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

COBOL compiling error for depending clause

Postby sange-sherin » Mon Dec 09, 2013 3:53 pm

Hi,

Please find my code below.

FILE SECTION.                                 
FD  DATA-FILE                                 
    RECORDING MODE IS V                       
    RECORD IS VARYING FROM 1 TO 32696         
     DEPENDING ON WS-LENGTH.                 
01  INPUT-REC                   PIC X(32696).
FD  OUTPUT-FILE                               
    RECORDING MODE IS V                       
    RECORD IS VARYING FROM 1 TO 32696.       
     DEPENDING ON WS-LENGTH-OUT.             
01  OUTPUT-REC                  PIC X(32696).


I am getting return code "12" while compiling due to the following error.

IGYDS1089-S   "DEPENDING" was invalid.  Scanning was resumed at the next area "A" item, level-number, or the start of the next clause.


Can anyone help me solve the problem.
sange-sherin
 
Posts: 25
Joined: Thu Nov 21, 2013 6:56 pm
Has thanked: 0 time
Been thanked: 0 time

Re: COBOL compiling error for depending clause

Postby sange-sherin » Mon Dec 09, 2013 3:55 pm

I found the problem and it is resolved. Thank you...........
sange-sherin
 
Posts: 25
Joined: Thu Nov 21, 2013 6:56 pm
Has thanked: 0 time
Been thanked: 0 time

Re: COBOL compiling error for depending clause

Postby Ed Goodman » Mon Dec 09, 2013 8:30 pm

I'm guessing it was the period at the end of the output file FD line:
RECORD IS VARYING FROM 1 TO 32696.
Ed Goodman
 
Posts: 341
Joined: Thu Feb 24, 2011 12:05 am
Has thanked: 3 times
Been thanked: 17 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post