View previous topic :: View next topic |
Author |
Message |
Ranjish Beginner

Joined: 22 Dec 2002 Posts: 64 Topics: 28 Location: Chennai
|
Posted: Wed Feb 18, 2004 11:43 am Post subject: AFTER POSITIONING verb |
|
|
Hi,
We are changing an old cobol program which is having statement
WRITE RECORD1 FROM TEMP-RECORD AFTER POSITIONING REPORT-CC
Here REPORT-CC is having value '0'.
But when compiling we are getting error saying that "POSITIONING was not defined as a data-name".
Please help me to solve this.
regards
Ranjish |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Feb 18, 2004 12:10 pm Post subject: |
|
|
Ranjish,
I guess your program is OS/VS cobol program . POSITIONING verb was dropped from the COBOL-85 standard. You can use ADVANCING verb. You need to convert the values being moved to report-cc into numeric equivalents.
Code: |
WRITE RECORD1 FROM TEMP-RECORD AFTER ADVANCING 2 LINES
|
The 0 value of report-cc translates t0 2 lines. check this link for explanation of carraige control characters.
http://www.mvsforums.com/helpboards/viewtopic.php?t=1496&highlight=carriage
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Ranjish Beginner

Joined: 22 Dec 2002 Posts: 64 Topics: 28 Location: Chennai
|
Posted: Wed Feb 18, 2004 12:35 pm Post subject: |
|
|
Hi Kolusu,
Thank you very much.
regards
Ranjish |
|
Back to top |
|
 |
|
|