Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Parsing all PS and PDS files under a RACF id using Rexx

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
sanjit mishra

New User


Joined: 13 Jun 2009
Posts: 5
Location: India

PostPosted: Sun Jun 14, 2009 11:33 am    Post subject: Parsing all PS and PDS files under a RACF id using Rexx
Reply with quote

Hi,

My requirement is to automate the process of changing the management class (making it TPS370) of all the PS and PDS created under my RACF id. I would like to know is there any in-built function in Rexx to parse all the PS/PDS prefixed with my RACF one by one and change its MGMTCLAS to TPS370.

Please advise the approach using Rexx that I need to follow here.

Thanks and Regards,
Sanjit Mishra
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Sun Jun 14, 2009 11:48 am    Post subject: Reply to: Parsing all PS and PDS files under a RACF id using
Reply with quote

Quote:
Please advise the approach using Rexx that I need to follow here.


since You feel to have the competence to decide that REXX was the way to go,
why do You ask for help ??

You do not need REXX to do it
look at the ISMF model command generation option
http://ibmmainframes.com/viewtopic.php?t=30133&highlight=ismf+command+generation
Back to top
View user's profile Send private message
sanjit mishra

New User


Joined: 13 Jun 2009
Posts: 5
Location: India

PostPosted: Sun Jun 14, 2009 11:57 am    Post subject:
Reply with quote

I was looking for some in-built Rexx function, if any, to realize the above requirement. I had intially posted it in rexx forum wherein i was advised to get in touch with sms forum.

Thanks and Regards,
Sanjit
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Sun Jun 14, 2009 12:29 pm    Post subject: Reply to: Parsing all PS and PDS files under a RACF id using
Reply with quote

is the process to be run one time only, or is it going to be a repetitive one...

just curious, why the storage support is not taking care of it ??
after all it' s their job to do it

for a once in a while approach,
use ispf 3.4 and save the dataset list
a simple edit to get rid of the unwanted datasets

exc all;f PS word all; f PO word all;del x all
will leave You with PS and pds only

to get rid of the unwnted colum data

c p'^' ' ' col1 col2 all

You will be left with the dsname only

insert a line with the IDCAMS alter statement with 44 blanks in the dsname space

use the line command C with the OVERLAY option to build the alter command for the whole list

now You have simply to add the JCL statement for IDCAMS...

IIRC You cannot run it while Your ispd session is active
( ENQ' s on the allocated dateset )

submit the job in an hold class, have operations release it

be sure that the acs routines have been modified to assignthe proper management class
in the future
Back to top
View user's profile Send private message
sanjit mishra

New User


Joined: 13 Jun 2009
Posts: 5
Location: India

PostPosted: Sun Jun 14, 2009 12:47 pm    Post subject:
Reply with quote

Thanks for the suggestion. It's going to be repititive activity, say once in a month's time, to override the default MGMTCLAS of test PS file from TPS035 to TPS370.

Also a couple of quick questions:
--Is it going to work for the migrated files and libraries (both migrat1 and migrat2)
--What exactly is an "acs routine" and please advise how can we modify MGMTCLAS using acs routine.

Thanks and Regards,
Sanjit
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Sun Jun 14, 2009 1:03 pm    Post subject: Reply to: Parsing all PS and PDS files under a RACF id using
Reply with quote

dont' t You have a storage support group in Your organization icon_question.gif icon_eek.gif

the approach is very poor... and also the standards
why not allocate with proper class to start with ?

ACS routines are the user written part of SMS that analyzing the dataset name
will set/assign the proper classes

storage support should be doing it
the analysis and the proper setup...
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Sun Jun 14, 2009 1:29 pm    Post subject:
Reply with quote

storage support should be doing it
storage support should be doing it
storage support should be doing it

Or is this perhaps a case of ..... this MGMTCLAS doesn't get migrated, so I will not have to wait for recalls on MY datasets, and with no regard to the DASD that I will keep allocated but unused just so long as MY datasets are OK.

It seems that your storage group are just a little lapse / lazy / incompetant in the implementation of SMS if people can just change MGMTCLAS at will.
So to reiterate Enricos sound advice .....

storage support should be doing it
storage support should be doing it
storage support should be doing it
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us