Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us