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

can u plz expain me how to declare dynamic array? what is the meaning of depending on clause in dynamic array?

3 Answers   IBM, Satyam,


how many bytes do SPPPP999 will store?

18 Answers  


how will u find out 3rd week's 2nd day using occurs ?

3 Answers   L&T,


what is dynamic array in cobol? what is the difference b/w array and table in cobol?

2 Answers  


what do you mean by copybook? and what is the difference between the copybook which we are using in working storage and procedure division.

3 Answers   HCL, TCS,


What are the different types of condition in cobol and write their forms.

1 Answers  


how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?

2 Answers  


What is JOBLIB and STEPLIB in JCL? what is the purpose of using it?

1 Answers  


SIGN TRAILING SEPARATE field occupy ?

3 Answers  


What is CALL statement in COBOL?

4 Answers  


What are the different rules of SORT operation?

1 Answers  


tell me about examine inspect and evaluate ?

2 Answers   CTS,


Categories