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

Parsing all PS and PDS files under a RACF id using Rexx


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sun Jun 14, 2009 11:48 am
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
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sun Jun 14, 2009 12:29 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sun Jun 14, 2009 1:03 pm
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: 8797
Location: Welsh Wales

PostPosted: Sun Jun 14, 2009 1:29 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 0
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Running REXX through JOB CLIST & REXX 13
Search our Forums:

Back to Top