Page 1 of 1

Converting fileaid to filemgr

PostPosted: Thu Jan 09, 2014 2:28 am
by dstsaconv
we want to update in place a pds containing batch jobs (jcl). We need to change things like job class, msgclass, dates...etc across the board.

With fileaid, we can give it multiple UPDATE stmts, but when we run the fileaid to filemgr conversion job, all additional stmts after that 1st UPDATE stmt are commented out.

Using filemgr, how do you make multiple changes to a pds in 1 pass? :mrgreen:

Re: Converting fileaid to filemgr

PostPosted: Thu Jan 09, 2014 9:41 pm
by Ed Goodman
I use this, and it works great. It's a batch job if that's what you want:

//SCANNER  EXEC PGM=FMNMAIN                           
//SYSPRINT DD SYSOUT=*                               
//FMNTSPRT DD SYSOUT=*                               
//SYSTERM  DD SYSOUT=*                               
//DD01     DD DISP=SHR,DSN=WTSO.WNEG.TDR9.SCHEDULE   
//SYSIN    DD *                                       
$$FILEM FCH ,                                         
$$FILEM INPUT=DD01                                   
C 'EAUXBI' '9AUXBI'                                   
C 'TDR5' 'TDR9'                                       
C 'EBACKUP' '9BACKUP'                                 
C 'EBATCH' '9BATCH'                                   


As a side note, I just used 'DD01' as the DD name out of habit, it can be any valid DD name.

Re: Converting fileaid to filemgr

PostPosted: Fri Jan 10, 2014 6:56 pm
by dstsaconv
Works perfect...thanks for your help!

Re: Converting fileaid to filemgr

PostPosted: Fri Jan 10, 2014 7:30 pm
by dick scherrer
Good to hear it is working - thank you for letting us know :)

We helpers appreciate knowing our suggestion helped 8-)

d

Re: Converting fileaid to filemgr

PostPosted: Fri Jan 10, 2014 9:35 pm
by Ed Goodman
Again...I love the satisfaction of having a tool laying on the shelf that does just what someone needs. That's a great feeling.