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 |
where will we code call by content and call by reference dude pls reply soon ?
What are literals?
what is the use of outrecord?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
what are the working storage fields in BMS macro?
If we use GO BACK instead of STOP RUN in cobol?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
How to code fscode 10 in cobol program? Where yoy code in your pgm?give ans for the question.
Write the syntax of a two dimensional array?
I have a field with data type X(10). I want to perform arithmetic operation on this field? I tried doing it by moving the value into a numeric field. but it didn't work out. I am getting a S0C7 abend. Pls let me know if there is any way of getting this done?
Write the code implementing the perform … varying.
What is the significance of 'above the line' and 'below the line'?