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
what is difference between cobol and cobol/400
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
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?
What is the LINKAGE SECTION used in COBOL?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What is rmode(24)
What is amode(31)
What are different data types in cobol?
Are you comfortable in cobol or jcl?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What is the difference between structured cobol programming and object alternativelyiented cobol?
What is the difference between Call and a Link?
) what is the difference between AID and HANDLE AID?
Name the divisions, which are available in a cobol program?