Joined: 08 Jun 2006 Posts: 45 Location: Trumbull, CT
I am trying to run the following JCL. My requirement is like split my 32,000,000 records file into 32 parts, with 1,000,000 records in each of the OUT1 to OUT32 output files.
SYT048E STATEMENT DOES NOT BEGIN WITH A VALID OPERATOR
OUT8,OUT9,OUT10,OUT11,OUT12,OUT13,
SYT048E STATEMENT DOES NOT BEGIN WITH A VALID OPERATOR
OUT14,OUT15,OUT16,OUT17,OUT18,OUT19,
SYT048E STATEMENT DOES NOT BEGIN WITH A VALID OPERATOR
OUT20,OUT21,OUT22,OUT23,OUT24,OUT25,
SYT048E STATEMENT DOES NOT BEGIN WITH A VALID OPERATOR
OUT26,OUT27,OUT28,OUT29,OUT30,OUT31,
SYT048E STATEMENT DOES NOT BEGIN WITH A VALID OPERATOR
OUT32)
SYT048E STATEMENT DOES NOT BEGIN WITH A VALID OPERATOR
Can you please let me know how to continue the same statement in next line so that i can capture my 32 datasets into the expected 32 files in a single step?
SPLIT1R is not available in SYNCSORT for Z/OS 1.2.3, so use SPLITBY.
Suppose if your file has more than 32,000,000 records, SPLITBY will do a cycle. i.e, it will append 3200001 to 3300000 records in OUT1 and 3300001 to 3400000 records in OUT2 and so on...
Suppose if your file has more than 32,000,000 records, DFSORT SPLIT1R will put 3100001 to all records in OUT32
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Quote:
SPLIT1R is not available in SYNCSORT for Z/OS 1.2.3, so use SPLITBY.
Don't assume you can use SPLITBY instead of SPLIT1R without understanding the difference between them. SPLIT1R will write contiguous records to each file because it puts any excess records (3300001-n) in the last file. SPLITBY can write non-contiguous records to a file because it starts over with the first file for any excess records.
For example, if your input file has 3300200 records, SPLIT1R will put records 3200001-3300200 in OUT32 - the records will be contiguous. SPLITBY will put records 3200001-3300000 in OUT32, but will put records 3300001-3300200 in OUT1, so OUT1 will have non-contiguous records (1-100000,3300001-3300200).
Note that DFSORT supports SPLIT1R, but Syncsort doesn't.