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


Please Help Members By Posting Answers For Below Questions

what is difference between cobol and cobol/400

21493


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1559


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

867


What is the LINKAGE SECTION used in COBOL?

850


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1924






What is rmode(24)

657


What is amode(31)

701


What are different data types in cobol?

653


Are you comfortable in cobol or jcl?

611


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

780


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

677


What is the difference between structured cobol programming and object alternativelyiented cobol?

720


What is the difference between Call and a Link?

672


) what is the difference between AID and HANDLE AID?

1607


Name the divisions, which are available in a cobol program?

653