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 ? | 6 Yes | 6 No |
Post New Answer View All Answers
What is rmode(any) ?
how to access the file from prodution from changeman tool and to submit a file to production
what is the use of outrecord?
What are the different data types in cobol?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
Write a program to enter and display the names of students in a class using the occurs clause.
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
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?
Are you comfortable in cobol or jcl?
how do you reference the ksds vsam file formats from cobol programs
What is static and dynamic call in cobol?
Differentiate between structured cobol programming and object-oriented cobol programming.
Why occurs cannot be used in 01 level in COBOL?
A table has two indexes defined. Which one will be used by the SEARCH?
How to use the same COBOL program in Batch and CICS on lines? explain with an example