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 |
can u plz expain me how to declare dynamic array? what is the meaning of depending on clause in dynamic array?
how many bytes do SPPPP999 will store?
how will u find out 3rd week's 2nd day using occurs ?
what is dynamic array in cobol? what is the difference b/w array and table in cobol?
what do you mean by copybook? and what is the difference between the copybook which we are using in working storage and procedure division.
What are the different types of condition in cobol and write their forms.
how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?
What is JOBLIB and STEPLIB in JCL? what is the purpose of using it?
SIGN TRAILING SEPARATE field occupy ?
What is CALL statement in COBOL?
What are the different rules of SORT operation?
tell me about examine inspect and evaluate ?