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
 

 

To Omit records using file-aid

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

New User


Joined: 26 Jul 2005
Posts: 55

PostPosted: Tue Sep 09, 2008 8:53 pm    Post subject: To Omit records using file-aid
Reply with quote

hi all,
i am using a file-aid in a jcl to copy from one dataset to other dataset,i'm using $$dd01 copy.

there are some invalid records in the input file,i want to omit that records while copying

ex: y00000000000
i want to remove this record..

what is the command in file-aid to omit this records.
Back to top
View user's profile Send private message

Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Sep 09, 2008 11:25 pm    Post subject:
Reply with quote

Hi,

Would suggest you to show a little more complete example of your input & output. Show some sample input data & what is expected output from that - what should be there in output & what should not be. If possible, please tell us how do you want to eliminate some record or as other would ask the rules to copy records.

When you post the input/output record details, please use BBcode.
Back to top
View user's profile Send private message
mf_karthik

New User


Joined: 26 Jul 2005
Posts: 55

PostPosted: Wed Sep 10, 2008 1:29 pm    Post subject: Reply to: To Omit records using file-aid
Reply with quote

hi,

here is my input and expected output.

input:

Code:
1234434 assds45668 6789790
2222222 fdhjgf67899 8768676
1234434 assds45668 6789790
            y00000000
1234434 assds45668 6789790
2222222 fdhjgf67899 8768676
            y00000000
1234434 assds45668 6789790


output:
Code:
1234434 assds45668 6789790
2222222 fdhjgf67899 8768676
1234434 assds45668 6789790
1234434 assds45668 6789790
2222222 fdhjgf6789  8768676
1234434 assds45668 6789790


i want to omit y0000000 while copying using file-aid
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed Sep 10, 2008 1:52 pm    Post subject:
Reply with quote

Hi,

try this
Code:
//FILEAID1 EXEC PGM=FILEAID           
//SYSPRINT DD SYSOUT=*               
//DD01     DD *                       
1234434 assds45668 6789790           
2222222 fdhjgf67899 8768676           
1234434 assds45668 6789790           
            y00000000                 
1234434 assds45668 6789790           
2222222 fdhjgf67899 8768676           
            y00000000                 
1234434 assds45668 6789790           
//DD01O    DD SYSOUT=*               
//SYSIN    DD *                       
$$DD01 DROP OUT=0,                   
   IF=(013,EQ,C'y00000000')           
/*                                   


Gerry
Back to top
View user's profile Send private message
mf_karthik

New User


Joined: 26 Jul 2005
Posts: 55

PostPosted: Tue Sep 23, 2008 3:14 pm    Post subject: Reply to: To Omit records using file-aid
Reply with quote

Hi Gerry,

Thanks for your reply..please explain me the syntax ie the purpose of OUT=0


I have searched but in vain.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Tue Sep 23, 2008 3:28 pm    Post subject:
Reply with quote

Hi,

if you do not specify OUT=0 it defaults to max of 999999 records to be written IFRC.

OUT=0 overrides the deafult or nullifies the default to unlimited.


Gerry
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Tue Sep 23, 2008 3:49 pm    Post subject:
Reply with quote

Hi,

The OUT=0 parameter processes the entire file. no OUT parameter defaults to 999999999, which is a fairly high number but still not necessarily the entire file.


Gerry
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 Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am


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