Page 1 of 1

Display page no. on text file using cobol

PostPosted: Wed Feb 11, 2009 7:24 pm
by radha.krishna
Hi,

I use cobol to generate my output on .txt file could some one help me to
generate page Numbers for the text file

Ex :

IF my out put is of 10 pages then i need to have page no. as 1 on fisrst and so on.

Pleased if some one provide the code.

Thanks,
Radha

Re: Display page no. on text file using cobol

PostPosted: Thu Feb 12, 2009 2:00 am
by dick scherrer
Hello,

You need to define a linecounter and a pagecounter in working-storage. For the first line written and every n lines written, you need to write the "page heading with the page#, increment the pagecounter, and zero the linecounter. You would increment the linecounter each time you write a line.

Pleased if some one provide the code.
We will help you work on your code, but will not do the work for you. If someone (other than you) posts a whole solution, it will be deleted.

Re: Display page no. on text file using cobol

PostPosted: Thu Feb 12, 2009 3:24 pm
by radha.krishna
thanks

Re: Display page no. on text file using cobol

PostPosted: Fri Feb 13, 2009 1:05 am
by dick scherrer
You're welcome :)

If there are questions/problems while you are coding/debugging, post them here. Someone will be able to clarify.