how you read control card into array?
Answers were Sorted based on User's Feedback
Answer / shwetha
Consider the Controll Card(Sysin) as an infile to the
program.
JS010 EXEC PGM=pgm,
REGION=0M
STEPLIB DD DSN=Loadlib,
DISP=(SHR,KEEP,KEEP)
INFILE DD DSN=xxxx.xxxx.SYSIN(control card),
DISP=(SHR,KEEP,KEEP)
(Where xxxx.xxxx.SYSIN -Sysin PDS)
Read it as an infile and download it to the Table defined
in your Program.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / kssb78
Yes Shweta is correct.
The alternate way to execute is to read the inputs in
control card DD statement SYSIN is using a ACCEPT statement
and move it into a working storage variable
Later using a subscript / index we can move the value into
an array.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / lu
I don't understand your question ???? give an example...
Array is a table using by subscript...
| Is This Answer Correct ? | 0 Yes | 2 No |
What is amode(24)?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What is the difference between index and subscript?
Can you call an OS VS COBOL pgm from a VS COBOL II pgm ?
How do define Dymanic array in cobol how do u define single demensional arry and multidymensional arry in ur cobol.
A s9(4). B v9(4) value 0.21 can i move this?
How To move a value to an array using move verb?
How can you add a particular field/coloumn in copybook?
what is s013u000 for?
I have sequential file recl 1000 i want to add another 15 bytes to it. The record length should not change..How?
Whats the difference between search & search ALL?
why we are using picture clause in the cobol programs?