Thanks kolusu..
I will go thru the links, My basic requirement is to split a very large file into 10 different files with respect to a table which is partioned based on the key..
This is done so that i can run parallel jobs with those datasets.
is there a better way to do this kolusu..
We have got a dataset which contains info regarding the cusomerid and the partition its attached to.So what we are trying to do in our exit routine is trying to read each i/p record and checking to which partition it belongs and then writing it intothe corresponding DSN.
we can acheive this by a cobol program too but someone from our team had suggested the possibility of an E35 exit routine!!
Is is faster ?
If this job does not satisfy your requirement, please post a sample of your Input and desired output along with DCB parameters of both input and output
OUTPUT FILES needed based on partitions , the DCB remaining the same as FILE 2
three files( based on partitions) need to be created with values like:
O/P FILE 1:
XXXXXXXX-CUST ID-XXXXXXXXXXXXXXXXX (from I/P FILE 2)Where this record is with cust-id from partition DMM2MSP1
and so on
The sort must create 3 files(ie for each partition) with E35 exit routine.
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Wed Jul 28, 2004 9:03 am Post subject:
Papz,
Since your input FB file has less than 1000 records , the following DFSORT/ICETOOL JCL will give you the desired results. If your shop has syncsort then change the pgm name to synctool. I assumed that the CUSTOMER-ID starts in pos 10 in the VB file. So if you want to extract the records we need to consider the rdw , which makes the position to be 14.
A brief explanation of the job. We first take the FB input file and created dynamic include cards which will be used to extract the records from the vb file.
The second copy step takes in these dynamically created control cards and creates the 3 output files.
Ps: On the other error you are getting when running an exit, I cannot tell as to what caused the error unless I see the code you are running. _________________ Kolusu
www.linkedin.com/in/kolusu
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum