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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


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