Write a program to concert an Indexed file into Sequential
Answer / ajay ahuja
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
3. Read Indexed file into "WS-SEQ-FILE-RECORD".
4. Write into Sequential file. Continue Step 3 thru 4 until
end of Indexed file.
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 do you reference the esds vsam file formats from cobol programs
what are the working storage fields in BMS macro?
How much salary you are expecting? If they ask in an interview, what we have to tell?
What are the differences between OS VS COBOL and VS COBOL II?
Write the syntax of a two dimensional array?
Write some characteristics of cobol as means of business language.
if i am reading a file with some 50000 records and moving to a DB2 table and suddenly the program abends in between, is there anyway i could restart from the exact record at which the job failed once the program restarts.
what will happen if i give program name and member name as different? program runs successful or w'll abend?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
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 are the limitations of Inline Perform?
Why we need to use redefine clause when we can define the variable seperately... what is actual need....