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 do u handle errors in BMS macro?
Explain how to differentiate call by context by comparing it to other calls?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
What is the difference between Call and a Link?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
What is rmode(any) ?
How to know whether the module is dynamical or statistical?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What are the cobol coding sheets?
how to move the records from file to array table. give with code example
Which division and paragraphs are mandatory for a COBOL program?