Posted: Fri Aug 06, 2004 9:51 am Post subject: file aid copy without sysin stream
Hi,
i have a flat file with a few million records..i need to copy records corresponding to a few 1000 accounts ...is there any way of doing this other than using the sysin stream..?
DD01 contains about a million records. my problem is that the SYSIn stream will be really large in case i want to specify a 1000 ORIF statements.
is there any way i can use a file which contains the sysin statements and specify this file instead of the sysin stream? this would save a lot of time since such a file can be easily generated.
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Fri Aug 06, 2004 10:21 am Post subject:
claustrog,
Quote:
is there any way i can use a file which contains the sysin statements and specify this file instead of the sysin stream? this would save a lot of time since such a file can be easily generated.
You can code all your sysin statements in a file and point that dsn name to the sysin dd name.
Code:
//SYSIN DD DSN=YOUR CONTROL CARDS,DISP=SHR
Since your sysin cards are close to 1000 , you may to need to use the parm MAXENT to avoid any kinds of abends.
Code:
$$DD01 USER MAXENT=1000,IF=(1,EQ,C'23420300025712'),
...
The other option is to code all the account #'s to be extracted in a seperate file and you can run a batch file-aid COMPARE and extract the records.
If the records are unique, you can extract the desired records from the input file using SORT
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