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
How arrays can be defined in COBOL?
Which mode is used to operate the sequential file?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
What are the various section in data division and briefly explain them.
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
What are the cobol coding sheets?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
what is the use of outrecord?
What is rmode(any) ?
what happens if parmparameter passes zero bytes to the program
how do you reference the rrds file formats from cobol programs
How do get the result of your program directly on your pc?
What are all the divisions of a COBOL program?
What kind of error is trapped by on size error option?
How do u write test cases?