View previous topic :: View next topic
|
Author |
Message |
mf_karthik
New User
Joined: 26 Jul 2005 Posts: 55
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
mf_karthik
New User
Joined: 26 Jul 2005 Posts: 55
|
|
|
|
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 |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
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 |
|
|
mf_karthik
New User
Joined: 26 Jul 2005 Posts: 55
|
|
|
|
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 |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
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 |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
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 |
|
|
|