Write a program to concert an Indexed file into Sequential
file?
Answer Posted / ajay ahuja
Program:
1. Define sequential file of same record size as of Indexed
file. say "WS-SEQ-FILE-RECORD".
2. Open Indexed file in INPUT mode and Sequential file in
output mode.
3. Read Indexed file into "WS-SEQ-FILE-RECORD".
4. Write into Sequential file. Continue Step 3 thru 4 until
end of Indexed file.
JCL:
Use Utility = IDCAMS,
//DD1 DD DSN=INDEXED.FILE.NAME
//DD2 DD DSN=SEQUENTIAL.FILE.NAME
// SYSIN DD *
REPRO INFILE(DD1) OUTFILE(DD2)
/*
//
I Hope this will help you !!!!
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What are the different data types in cobol?
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?
What is the difference between perform … with test after and perform … with test before?
How do u write test cases?
how do you reference the variable unblock file formats from cobol programs
What kind of error is trapped by on size error option?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
HOw can I get the negative sign while deduct high value from low value
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
Which Search verb is equivalent to PERFORM…VARYING?
What are literals?
What is length is cobol?
Write some characteristics of cobol as means of business language.
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
what is the difference between COBOL2 AND COBOL390?