I am facing difficulties regarding one of sort requirement. Below is the requirement -
I have a PS file with records ( could have 1 or many records) where i am dividing the records count with 4 and then splitting the PS file records in 4 different files.
my requirement is to write the records in 4 files only if division result greater than or equal to 1. If not I want to write the records in 1 file and remaining 3 files should be empty. Need help on this. Thanks!
NP DDNAME StepName ProcStep DSID Owner C Dest Rec-Cnt
#1 WHATEVER 107 <me> V LOCAL 2
#2 WHATEVER 108 <me> V LOCAL 2
#3 WHATEVER 109 <me> V LOCAL 2
#4 WHATEVER 110 <me> V LOCAL 1
Welcome!
Not sure if SPLITBY is supported by SYNCSORT but you can give a try.
I found working solution to the same problem as yours.
ibmmainframes.com/about10081.html
my requirement is to write the records in 4 files only if division result greater than or equal to 1. If not I want to write the records in 1 file and remaining 3 files should be empty.
my requirement is to write the records in 4 files only if division result greater than or equal to 1. If not I want to write the records in 1 file and remaining 3 files should be empty.
But if there is only 1 record then anyways other 3 will be empty since SPLITBY will not find any to write after 1( which was I would think) If there are 5 then first data set will have 2 now, it’s round robin. Use SPLITBY=1
********************************* TOP OF DATA **********************************
01
******************************** BOTTOM OF DATA ********************************