IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Change the member names thru File-Aid


IBM Mainframe Forums -> Compuware & Other Tools
Post new topic   Reply to topic
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
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
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
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
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Compuware & Other Tools

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top