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 |
How to declare if emp-name = AAAAA""BBB in working-storage section. After display emp-name should print like AAAAA""BB
how to create temporary data set in jcl? what is the use?
3 Answers Cap Gemini, Temenos,
Can anyone please give the example of Inline Perform.
what is the difference between PA & PF keys?
Read filea And file b write the same records in both files? Records in a but not in b record in b but not in a
Suppose i have a variable with s9(18)v99 comp3 . what is the size of variable . If s9(18) comp3 is 10 bytes . There should be some difference between two allocations ? Thanks krishna chaitanya
what is mainframe? what is the mainframe software ? what is use in s/w field?
I encountered an error when I move spaces to a numeric field?What should I do to move spaces on that field?help please.
what is the use of keep and pass in disp
How To Separate The Numerics From An Alphanumric Data Item Which Contains Both Alphabates And Numerics ?
how many bytes does a s9(12)COMP-4 field occupy?? a.2 b.4 c.8 d.1 ans with reason please
How are the next sentence and continue different from each other?