how to split a file

Answer Posted / kalpana

Using the sort card we can split the file.
//SYSIN DD *
SORT FIELDS=COPY,SKIPREC=56910,STOPAFT=25
/*
SKIPREC means how many records we need to skip and STOPAFT
means how many records we need to put in the
file.

Is This Answer Correct ?    5 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between the joblib and the steplib statements?

952


How to alter the parameters for the existing gdg?

799


what are the types of abends that occur on job failure? And explain the possible causes of these

1222


Why block size is multiple of lrecl in jcl?

1021


Why include statement is used in a jcl?

786






a dd statement has 2 types of parameters. Name them?

735


Explain the purpose of dd dummy statement?

781


what is DSN parameter and DISP parameter is used for?

764


what sort card you will use to copy the data from one dataset to another dataset?

836


My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.

2089


What is job control language?

704


What is one line to pass PARM from JCL to COBOL?

4550


If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?

888


I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK

1592


What are hierarchy levels in jcl?

1081