have in 100 records in a flat file i want to move records
like 1,3,5,7,9,11,.. to Output file1 and
2,4,6,8,10,12,14 .. records moved to Output file2..Pls
Provide real time answer..
Answer Posted / ranjith kumar
//JOBNAME
//STEP1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=INPUT DSN,DISP=SHR
//OUT1 DD DSN=OUTPUT DSN1,DISP=(NEW,CATLG),
// SPACE=(CYL,(5,5)),UNIT=SYSDA
//OUT2 DD DSN=OUTPUT DSN2,DISP=(NEW,CATLG),
// SPACE=(CYL,(5,5)),UNIT=SYSDA
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL FNAMES=(OUT1,OUT2),SPLIT
/*
//
| Is This Answer Correct ? | 7 Yes | 6 No |
Post New Answer View All Answers
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
) how do u code after getting data?
) what is the difference between AID and HANDLE AID?
How you can read the file from bottom?
how to refer the data field?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
How arrays can be defined in COBOL?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
what is search and searchall?what is the diffrence between them?give an best example?
What is report-item in COBOL?
Give some examples of command terminators?
Explain how to differentiate call by context by comparing it to other calls?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What is the difference between binary search and sequential search?
explain sorting techniques in cobol program?