IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

To Omit records using file-aid


IBM Mainframe Forums -> Compuware & Other Tools
Post new topic   Reply to topic
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
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

Superior Member


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

PostPosted: Tue Sep 09, 2008 11:25 pm
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
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: 1702
Location: Australia

PostPosted: Wed Sep 10, 2008 1:52 pm
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
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: 1702
Location: Australia

PostPosted: Tue Sep 23, 2008 3:28 pm
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: 1702
Location: Australia

PostPosted: Tue Sep 23, 2008 3:49 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Compuware & Other Tools

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top