Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

copying every nth record using File-Aid.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools
View previous topic :: :: View next topic  
Author Message
ranga_subham

New User


Joined: 01 Jul 2005
Posts: 51

PostPosted: Thu May 11, 2006 8:48 am    Post subject: copying every nth record using File-Aid.
Reply with quote

Hi,

Can you give me a File-Aid sysin card to copy every nth record of an input data to the output dataset?

Thanks in advance.
Back to top
View user's profile Send private message

shrivatsa
Warnings : 1

Active User


Joined: 17 Mar 2006
Posts: 171
Location: Bangalore

PostPosted: Thu May 11, 2006 9:17 am    Post subject:
Reply with quote

Hi Ranga,

//COPY EXEC PGM=FILEAID
//SYSPRINT DD SYSOUT=A
//SYSLIST DD SYSOUT=A
//DD01 DD DSN=xxxxx.TEST.SORT,DISP=SHR
//DD01O DD DSN=xxxxx.TEST.SORTOUT,DISP=(,CATLG,DELETE),
// UNIT=SYSD@,LABEL=RETPD=90,
// DCB=(BLKSIZE=58200,LRECL=300,RECFM=FB),
// SPACE=(58200,(14000,135),RLSE,,ROUND)
//SYSIN DD *
$$DD01 COPY SELECT=2,OUT=100
/*

it will select every 2nd record and you can limit here the output by 100 records.
Back to top
View user's profile Send private message
ranga_subham

New User


Joined: 01 Jul 2005
Posts: 51

PostPosted: Thu May 11, 2006 12:57 pm    Post subject:
Reply with quote

Shrivatsa, Thanks a lot. Have a good day.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us