I have a table with 3 dimensions like this :
01 ws-table
04 ws-page occurs 3
08 ws-column occurs 2.
12 ws-record occurs 20 pic x(40).
How to code with PERFORM varying with 3 dimension...I
forgot..
Answers were Sorted based on User's Feedback
Answer / lu
you have coding like this :
Working Storage Section.
77 I-page pic 99 value zero.
77 J-col pic 99 value zeroes.
77 K-record pic 99 value zeroes.
Procedure Division.
Perform 1000-move varying I-page from 1 by 1 until
I-page > 3
after J-col from 1 by 1 until
J-col > 2
after K-record from 1 by 1 until
K-record > 20.
1000-move.
move a-field to ws-record (I-page, J-col, K-record).
| Is This Answer Correct ? | 12 Yes | 0 No |
How can you display the SPOOL information ?
plz,could any one tell me? what about EBCDIC in cobol?briefly?
Which division and paragraphs are mandatory for a COBOL program?
The maximum number of dimensions that an array can have in COBOL-85 is ?
What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?
How to print 10 to 1 if the input have only 10 digit number?
how many bytes does s9(15) occupy in comp1 comp2 and comp3 ?
without performing any operations on a file how can i know whether it contains data or not
can we declare occurs in 01 level?
I need to compare two VSAM files, both having 'number' as key. If there is a matching record, write the data into another VSAM file. How will it be possible.
How may divisions are there in JCL-COBOL?
What is the difference between CONTINUE & NEXT SENTENCE ?