Page 1 of 1

How to copy files via file-aid

PostPosted: Sat Jan 23, 2010 6:42 am
by mail2mz
Hello,

Can I copy all other members except for certain ones in the dataset via file-aid? For example, I have more than 1000 members in the datasets, there are about 200 members have the name as nfgxxxxxx. How can I use file aid to copy all members except those with the name as nfgxxxxxx?

Currently, I am using the following JCL to copy the members with nfgxxxxxx to the new dataset:

$$D01 copy NEWMEM=------,
MRBNAME = (nfg, nfg)
.....

Now I want copy all members other than nfgxxxxxx to a new dataset.

Thanks,

Mike

Re: How to copy files via file-aid

PostPosted: Sat Jan 23, 2010 9:41 am
by dick scherrer
Hello and welcome to the forum,

You might copy everything and then delete the nfg members from the new dataset. . .

Re: How to copy files via file-aid

PostPosted: Sun Jan 24, 2010 1:28 am
by mail2mz
That will be an option. Do you know how to delete the nfg members via fileaid on JCL batch?

Thanks,

Re: How to copy files via file-aid

PostPosted: Wed Feb 10, 2010 6:28 pm
by Anuj Dhawan
I want copy all members other than nfgxxxxxx to a new dataset.
Do ther other members also follow some pattern?

Re: How to copy files via file-aid

PostPosted: Thu Mar 11, 2010 3:01 am
by TerMiller1
$$DD01 COPY NEWMEM=------,MRBNAME = (,NFF99999)
$$DD01 COPY NEWMEM=------,MBRNAME=(NFH,Z9999999)

Should skip all NFG* members.

Re: How to copy files via file-aid

PostPosted: Thu Mar 11, 2010 3:17 am
by dick scherrer
Hello Terry(?) and welcome to the forum,

Thanks for posting :)

Hopefully, you will find some things that are useful also. . .

d

Re: How to copy files via file-aid

PostPosted: Thu Mar 11, 2010 4:10 am
by TerMiller1
$$DD01 COPY NEWMEM=------,MRBNAME = (,NFFZ)
$$DD01 COPY NEWMEM=------,MBRNAME=(NFH,Z)

File-Aid checks membernames using ASCII for member character comparisons at our site. It might be a site-specifi system installation setting for File-Aid. I don't know for sure.
This would work better to skip all NFG* members if File-Aid is using the ASCII collating sequence for membername characters.

Terry

Re: How to copy files via file-aid

PostPosted: Tue Oct 05, 2010 8:16 pm
by ritikasingh
Hi,

Seems the question was asked long back, posting reply as this may also help other people..

In fileaid 3.3 option which is used to copy data set, there you can specify the criteria using temporary search.
The filter can be used either directly using the copylib or if you know the location of commom string you can include or exclude.


Thanks..