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 |
What is an index for tables?
What is the difference between a binary search and a sequential search?
what is redefines? where it can be effectively use for the purpose of memory utilization? give an example?
Consider the following: 77 W-NUM PIC 9 VALUE 0 ------ MOVE 1 TO W-NUM PERFORM PARA-X UNTIL W-NUM > 9. ------ PARA-X ADD 1 TO W-NUM How many times PARA-X is executed ?
If my program receives input feed from program in other system.. if the receiving field size is less than the sending field.. what abend will be happening.
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 the difference between Plan & package
File status must be checked both while opening and reading the file or only while reading the file?
Name some of the examples of COBOl 11?
can we read records in a file from botom to top. if possible how can we read
In INITIALIZE what is Repalcing Word will do
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue