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 |
I encountered an error when I move spaces to a numeric field?What should I do to move spaces on that field?help please.
What is the purpose of Identification Division?
What is the difference between SEARCH and SEARCH ALL?
Write some characteristics of cobol as means of business language.
wht is load module and object module ?
how you read control card into array?
how we rectify soc4 and soc7 error in project(need real time answer)? please reply
What is the difference between next sentence and continue in cobol programing language?
how to convert vsam table into DB2 table?
How do we get current date from system with century?
Which of the following characters is NOT valid in column 7? a. - b. \ c. * d. # e. $
How do u know what version of cobol u are using?