how you read control card into array?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

647


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

1689


What is length is cobol?

636


What are the pertinent COBOL commands?

2615


What is the difference between PIC 9.99 and 9v99 in COBOL?

721






How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

722


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1794


how do you define single dimensional array and multidimensional array in your cobol?

661


Discuss about changing dataset name in proc.

751


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17009


Which is not true about evaluate statement

1557


How to print 10 to 1 if the input have only 10 digit number?

797


Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks

2317


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

695


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

674