View previous topic :: View next topic
|
Author |
Message |
bhashyam Currently Banned New User
Joined: 13 Nov 2007 Posts: 12 Location: Bangalore
|
|
|
|
Code: |
PRT-TEST-RTN.
MOVE 0 TO Z.
MOVE SPACE TO PRT.
MOVE TEST-PTN TO PRT-REC.
WRITE PRT AFTER TOP-OF-PAGE.
PRT-TEST.
ADD 1 TO Z.
IF Z > 27 GO TO PRT-TEST-EXIT.
WRITE PRT AFTER 2.
GO TO PRT-TEST.
PRT-TEST-EXIT.
EXIT. |
I do not understand the "write prt after 2".
Thank you. |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
Quote: |
Are you creating report thru cobol? If yes, go thru the manual for REPORT SECTION. |
Which version of COBOL you are talking about? COBOL85 with REPORT WRITER?
We use enterprise cobol and there is no REPORT SECTION exists, still it is valid COBOL statement.
This is equivalent to -
Code: |
WRITE PRT AFTER ADVANCING 2 LINES |
Correct me |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
murmohk1 wrote: |
bhashyam,
Are you creating report thru cobol? If yes, go thru the manual for REPORT SECTION. |
That code has nothing to do with with the REPORT SECTION it is just plain cobol. |
|
Back to top |
|
|
|