how you read control card into array?

Answers were Sorted based on User's Feedback



how you read control card into array?..

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

how you read control card into array?..

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

how you read control card into array?..

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

Post New Answer

More COBOL Interview Questions

where will we code call by content and call by reference dude pls reply soon ?

2 Answers  


What are literals?

0 Answers  


what is the use of outrecord?

0 Answers  


What is the default value(s) for an initialize and what keyword allows for an override of the default?

0 Answers  


what are the working storage fields in BMS macro?

2 Answers   IBM,


If we use GO BACK instead of STOP RUN in cobol?

1 Answers   Temenos,


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

0 Answers   Amdocs,


How to code fscode 10 in cobol program? Where yoy code in your pgm?give ans for the question.

2 Answers   IBM,


Write the syntax of a two dimensional array?

8 Answers   Honeywell, Xansa,


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?

1 Answers  


Write the code implementing the perform … varying.

0 Answers  


What is the significance of 'above the line' and 'below the line'?

2 Answers   Nokia,


Categories