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
How to copy files via file-aid
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: How to copy files via file-aid
Hello and welcome to the forum,
You might copy everything and then delete the nfg members from the new dataset. . .
You might copy everything and then delete the nfg members from the new dataset. . .
Hope this helps,
d.sch.
d.sch.
Re: How to copy files via file-aid
That will be an option. Do you know how to delete the nfg members via fileaid on JCL batch?
Thanks,
Thanks,
-
- Posts: 272
- Joined: Mon Feb 25, 2008 3:53 am
- Skillset: None
- Referer: Google
- Location: Mumbai, India
Re: How to copy files via file-aid
Do ther other members also follow some pattern?I want copy all members other than nfgxxxxxx to a new dataset.
Anuj
-
- Posts: 2
- Joined: Thu Mar 11, 2010 2:47 am
- Skillset: Mainframe
- Referer: Google Search - I have an answer
Re: How to copy files via file-aid
$$DD01 COPY NEWMEM=------,MRBNAME = (,NFF99999)
$$DD01 COPY NEWMEM=------,MBRNAME=(NFH,Z9999999)
Should skip all NFG* members.
$$DD01 COPY NEWMEM=------,MBRNAME=(NFH,Z9999999)
Should skip all NFG* members.
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: How to copy files via file-aid
Hello Terry(?) and welcome to the forum,
Thanks for posting
Hopefully, you will find some things that are useful also. . .
d
Thanks for posting

Hopefully, you will find some things that are useful also. . .
d
-
- Posts: 2
- Joined: Thu Mar 11, 2010 2:47 am
- Skillset: Mainframe
- Referer: Google Search - I have an answer
Re: How to copy files via file-aid
$$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
$$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
-
- Posts: 39
- Joined: Wed Sep 01, 2010 9:12 pm
- Skillset: Operating Systems: MVS
Environment: Mainframe, Windows
Databases: VSAM, DB2 Tables
Programming Languages: COBOL, JCL,TSO/ISPF, CICS, DB2 (SQL),
Software Tools: File-AID, Endeavor, SORT, ICETOOL, SNDM, HP Quality Center,
OPC, DRMS,IDCAMS, SMARTIS, VISIO, Vision plus, HP(Service Manager),TSO,ISPF - Referer: google
Re: How to copy files via file-aid
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..
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..
-
- Similar Topics
- Replies
- Views
- Last post
-
-
How can I copy message queue files (LGMSG,SHMSG) in V9R1
by futohomok » Thu Jul 27, 2023 5:54 pm » in IMS DB/DC - 6
- 2008
-
by futohomok
View the latest post
Thu Aug 03, 2023 1:21 pm
-
-
-
File Handling 3 input files and 1 output file by using EZT
by pavan426 » Thu Sep 09, 2021 12:17 am » in CA-Easytrieve - 0
- 4414
-
by pavan426
View the latest post
Thu Sep 09, 2021 12:17 am
-
-
-
Joining 2 vb files into vsam files ended error
by newbiemainframe » Thu Nov 12, 2020 7:59 am » in JCL - 1
- 1748
-
by NicC
View the latest post
Thu Nov 12, 2020 7:15 pm
-
-
- 12
- 3848
-
by RalphEagle
View the latest post
Fri Jul 30, 2021 1:00 pm
-
- 4
- 6084
-
by steve-myers
View the latest post
Sat May 15, 2021 1:58 am