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


Please Help Members By Posting Answers For Below Questions

What is rmode(any) ?

686


how to access the file from prodution from changeman tool and to submit a file to production

6686


what is the use of outrecord?

1774


What are the different data types in cobol?

801


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

719






Write a program to enter and display the names of students in a class using the occurs clause.

654


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.

2060


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?

5379


Are you comfortable in cobol or jcl?

643


how do you reference the ksds vsam file formats from cobol programs

669


What is static and dynamic call in cobol?

601


Differentiate between structured cobol programming and object-oriented cobol programming.

669


Why occurs cannot be used in 01 level in COBOL?

721


A table has two indexes defined. Which one will be used by the SEARCH?

759


How to use the same COBOL program in Batch and CICS on lines? explain with an example

1914