MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

file aid copy without sysin stream

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
claustrog
Beginner


Joined: 05 Aug 2004
Posts: 3
Topics: 2

PostPosted: Fri Aug 06, 2004 9:51 am    Post subject: file aid copy without sysin stream Reply with quote

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..?

my jcl is something like this:
Code:

//COPYFILE EXEC PGM=FILEAID                                     
//SYSUDUMP DD SYSOUT=H                                         
//SYSTOTAL DD SYSOUT=*                                         
//SYSLIST  DD SYSOUT=*                                         
//SYSPRINT DD DSN=DNW.NBS8P.TAPEDATA.MIM2TRY,DISP=SHR         
//DD01     DD DSN=DNW.NBSCAT.DNWBA701.NMCGEN.TEMP2904,DISP=SHR
//OUT3     DD DSN=DNW.NBS8P.TEMP2904.TESTOUTZ,DISP=MOD         
//SYSIN    DD *   
$$DD01 USER  IF=(1,EQ,C'23420300025712'),                   
             ORIF=(1,EQ,C'23420300025733'),                     
             ORIF=(1,EQ,C'23420300024700'),WRITE=OUT3           
//*                                                             


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.
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Aug 06, 2004 10:21 am    Post subject: Reply with quote

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

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group