In one of intervie, my interviwer asked, I have a file
which contains 4 records I would like to split the 4
different outputs for each record how to do?

Answer Posted / rajesh

The following will also work ..

//SYSIN DD *
SORT FIELDS=COPY,
OUTFILE FNAMES=(OUTFILE1,OUTFILE2,OUTFILE3,OUTFILE4),SPLIT
/*

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you

615


What is the function of the steplib dd statement?

752


Differentiate between addressing mode and run mode.

622


Can I share my data with other jobs? How?

681


What are hierarchy levels in jcl?

965






What is the function of dd name parameter with a 2 part structure; audit.report?

714


What does a disposition of (MOD,DELETE,DELETE) mean ?

678


Where & How Do You Code Identifier In Jcl?

710


Suppose I have five jobs to do. But I want to hold one?

669


write a jcl to execute a job by 7:00 am on jan 20,1986?

711


is there any way to execute more than one proc in the same exec statement at the same time..?

2119


Are there any set of rules for the names of the steps used in a job? What are they?

624


How to submit jcl through a cobol program?

691


if the submitter of a job wants to inform another user about the job completion, how can it be done?

771


Explain about LMFREE�free data set from its association with data ID

1016