Write a program to concert an Indexed file into Sequential
file?
Answer / 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 |
Can we change the password using ALTER? anyone tried and changed?
why mainframe we use not like java as frontend oracle as backend. or not word excel.In there also huge ammount data stored.
which one is better among static call and dynamic call?
What is SSRANGE, NOSSRANGE ?
How can we increase the size of an existing PDS to include more no. of modules.
Hi, My interviewer ask A calls B and C calls B, a and b are static c and b are dynamic.what happens if they compile and execute at same time.
which one is the best of com and com-3.using of real time ?
what is label record is standard or omitted in file description of data division?
How to read records which is in sequential file in reverse order ? Exp. 1 2 3 4 5 . i want 5 4 3 2 1?please clear my doubt any one
what are the paramater we cannot use in procedure?how many instream we can write in single jcl?can we call instream to catalog and ctalog to instream?
How many bytes do a s9 (7) comp-3 field occupy?
What do you do to resolve SOC-7 error?