I'm trying to print a statement at the bottom of the last page of a variable lenght report.
My problem comes in when I try to z-add 51 to the line counter. It stays 51 until I write the line then it goes back to what it was. This is an old RPG program. The lines are in a table and parsed together and printed as a variable name.
IFDS1 DS
I 1 8 S1FNAM
I B 123 1240S1SFNO
I B 367 3680S1LINE
I B 369 3720S1PAGE
* * * * * * * * * * * * * * * * * * * * * * * * * * * * *
MOVE 'Y' CLAUSE 1
MOVELFM1,1 CLSE
MOVE FM1,2 CLSE
Z-ADD51 S1LINE
WRITECL
after this write the line number goes back to 21.
Any ideas. I can't specify the line number on the printfile because it doesn't always print at the same place. Does anyone understand my problem? If you do, help please!
My problem comes in when I try to z-add 51 to the line counter. It stays 51 until I write the line then it goes back to what it was. This is an old RPG program. The lines are in a table and parsed together and printed as a variable name.
IFDS1 DS
I 1 8 S1FNAM
I B 123 1240S1SFNO
I B 367 3680S1LINE
I B 369 3720S1PAGE
* * * * * * * * * * * * * * * * * * * * * * * * * * * * *
MOVE 'Y' CLAUSE 1
MOVELFM1,1 CLSE
MOVE FM1,2 CLSE
Z-ADD51 S1LINE
WRITECL
after this write the line number goes back to 21.
Any ideas. I can't specify the line number on the printfile because it doesn't always print at the same place. Does anyone understand my problem? If you do, help please!
Comment