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
What is the use of intialize verb?
i want a program using by if, evaluate , string, unstring, perform, occurs?
What is comp-1 and comp-2?
How many bytes S(8) comp field occupy and its maximum value?
Define cobol?
What is the difference between Global and External Variables?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
What is the difference between goback, stop run and exit program in cobol?
what is the difference between COBOL2 AND COBOL390?
What are the different open modes available in cobol?
how do you reference the rrds file formats from cobol programs
What are the pertinent COBOL
How do you differentiate between cobol and cobol-ii?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
how do you reference the fixed unblock file formats from cobol programs