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 |
how to know that the file has 300 records how to acess it?
How to open and see copy book ?
SIGN TRAILING SEPARATE field occupy ?
Determine the total no of bytes in the following. 01 rec1. 02 a pic x(6) 02 b redefines a. 03 c occus 6 times pic 9. 02 d occurs 6 times pic 9. 03 e pic x(5) 03 f pic 999.
can we redefine 77 level item is it possible
How can you submit a job from COBOL programs?
how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?
State the various causes of s0c1, s0c5 and s0c7.
what are difference organizations in cobol and access mode in cobol? can you expalin what organization means while declaring for ksds,esds,rrds?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
what is difference between the sysabend and userabend?
For rewrite, why is it mandatory that file needs to be opened?