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
 

 

Change the member names thru File-Aid

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools
View previous topic :: :: View next topic  
Author Message
stly
Warnings : 1

New User


Joined: 25 Jul 2005
Posts: 93

PostPosted: Tue Oct 16, 2007 6:18 pm    Post subject: Change the member names thru File-Aid
Reply with quote

I have 4 PDs.Ecah contains around 100 members.I need the to change the member names ie)i need to change SYS to LVL.How it can be done thru file Aid .

In clear...

SYSJCL1-------LVLJCL1
SYSJRT-----LVLJRT
Back to top
View user's profile Send private message

cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Tue Oct 16, 2007 7:03 pm    Post subject: Reply to: File-Aid Query
Reply with quote

You can do it in FILEAID using the following:

Code:

//FILEAID EXEC PGM=FILEAID                               
//SYSPRINT DD  SYSOUT=*       
//DD01     DD DISP=SHR,DSN=HLQ.INPUT.PDS
//DD01O    DD  DSN=HLQ.OUTPUT.PDS,                 
//             UNIT=SYSDA,DISP=(NEW,CATLG),               
//             RECFM=FB,LRECL=80,BLKSIZE=27920,           
//             SPACE=(TRK,(60,15,100))                   
//SYSIN    DD  *                                         
$$DD01 COPY NEWMEMS=LVL-----                             
/*                                                       


Every member prefixed with SYS will be changed to LVL in the output PDS. Make sure your DCB parameters on the output DD are consistent with your input PDS. Make sure your directory blocks (100 in the example) and space allocations match your input PDS. This job will overlay the 1st 3 positions of any member name with LVL, no matter what the member name is currently.
Back to top
View user's profile Send private message
stly
Warnings : 1

New User


Joined: 25 Jul 2005
Posts: 93

PostPosted: Wed Oct 17, 2007 9:53 am    Post subject:
Reply with quote

Hi Hawg is there any option in File-Aid to do this rather than submitting a job.
Back to top
View user's profile Send private message
stly
Warnings : 1

New User


Joined: 25 Jul 2005
Posts: 93

PostPosted: Thu Oct 18, 2007 3:08 pm    Post subject:
Reply with quote

Ca anyone throw some lite onthis???
Back to top
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Thu Oct 18, 2007 5:49 pm    Post subject: Reply to: Change the member names thru File-Aid
Reply with quote

You can do this in the FILEAID INTERACTIVE (option 8).

Your Input Dataset is your PDS.

You must preallocate an output dataset with the same attributes as your PDS. This dataset should then be coded in the "TO" Dataset Information field.

You can preallocate a FB,80,80 dataset with one track of space and place the following control card in the dataset and save it.

Code:

$$DD01 COPY NEWMEMS=LVL-----


This control dataset must be coded in the Optional Control Dataset Information field.

When you press enter, all members are copied to the new PDS with LVL prefixing every member name.
Back to top
View user's profile Send private message
stly
Warnings : 1

New User


Joined: 25 Jul 2005
Posts: 93

PostPosted: Fri Oct 19, 2007 4:20 pm    Post subject:
Reply with quote

Thank u
Back to top
View user's profile Send private message
stly
Warnings : 1

New User


Joined: 25 Jul 2005
Posts: 93

PostPosted: Tue Oct 30, 2007 11:13 am    Post subject:
Reply with quote

Hi cpuhawg,

ur suggestion is working fine but it is changing all the names.But i need to change the name which strats with SYS to LVL.

Can u throw some lite
Back to top
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Tue Oct 30, 2007 5:52 pm    Post subject: Reply to: Change the member names thru File-Aid
Reply with quote

My suggestion would be to move all the SYS prefixed members to their own PDS, run the FILEAID procees to change them, and then copy them back to the original PDS.
Back to top
View user's profile Send private message
stly
Warnings : 1

New User


Joined: 25 Jul 2005
Posts: 93

PostPosted: Wed Oct 31, 2007 11:12 am    Post subject:
Reply with quote

Thank u
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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts RFE: DB2 support for mixed case names. Pedro DB2 0 Tue Jul 04, 2017 1:32 am
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm


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