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

Modify the shareoptions of VSAM in Define Parameters


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
chavinash2004

New User


Joined: 30 Jun 2010
Posts: 37
Location: hyderabad

PostPosted: Thu Feb 27, 2020 5:55 pm
Reply with quote

Thank You Marso, Joerg & Nic.

Hi Marso,

Actually Nic suggested the below approach but i'm not able to do it.

*****you only have to check each record for either SHR or SHAREOPTIONS and then overlay the current option with the new option. And don't forget to write an audit report.*****

Thanks a lot once again.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Feb 27, 2020 9:53 pm
Reply with quote

Quote:
And don't forget to write an audit report.


I suggest to keep a backup copy of the data set then use Superc to compare the new and the old. The list of changes is your 'audit report'.
Back to top
View user's profile Send private message
chavinash2004

New User


Joined: 30 Jun 2010
Posts: 37
Location: hyderabad

PostPosted: Fri Feb 28, 2020 8:48 am
Reply with quote

Sure, Pedro and also thanks for the suggestion.


Please let me know if you can help with any REXX code to compare the PDS members and write a report. We are changing around 1000 parms.
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1255
Location: Bamberg, Germany

PostPosted: Fri Feb 28, 2020 10:47 am
Reply with quote

@chavinash2004: ibmmainframes.com/about38892.html but better run ISPF SUPERC/E in Batch to have a real report.
Back to top
View user's profile Send private message
chavinash2004

New User


Joined: 30 Jun 2010
Posts: 37
Location: hyderabad

PostPosted: Fri Feb 28, 2020 10:54 am
Reply with quote

Okay Joerg. Thanks a lot for your help.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Mar 19, 2020 3:05 pm
Reply with quote

You can of course use IGGCSI00 (basic example usually found in SYS1.SAMPLIB) to get the SHR parameters.
Back to top
View user's profile Send private message
chavinash2004

New User


Joined: 30 Jun 2010
Posts: 37
Location: hyderabad

PostPosted: Tue Mar 31, 2020 11:48 am
Reply with quote

Thanks a lot for your help Marso.

Have a great day ahead:)

Stay safe from corona.
Back to top
View user's profile Send private message
chavinash2004

New User


Joined: 30 Jun 2010
Posts: 37
Location: hyderabad

PostPosted: Tue Mar 31, 2020 11:50 am
Reply with quote

Thanks a lot for your help expat.

Have a great day ahead:)

Stay safe from corona.
Back to top
View user's profile Send private message
chavinash2004

New User


Joined: 30 Jun 2010
Posts: 37
Location: hyderabad

PostPosted: Thu Apr 09, 2020 8:22 pm
Reply with quote

Joerg.Findeisen wrote:
This works for me.
Code:
/* REXX */                                                     
address "ISREDIT"                                             
"macro"                                                       
                                                               
"c r'(SHR|SHAREOPTIONS)"!!,                                   
"[ ]*\([ ]*[1-4]([ ]+|[ ]*,[ ]*)[34][ ]*\)' 'SHR (2 3)' all"   
                                                               
exit


Hi Joerg,

Sorry to bother again on this topic.

Since you given very simple command to solve my issue. I'm posting my question again.

I just encountered another scenario. If user added "0" prefix then the code not working. I have provided the examples below.

Not working in below Scenario:
Code:

SHR   (04 03)
SHR   (01 03)
SHR   (04 04)


Working fine in below Scenario:

If "0" prefix is not there then it's working fine.

Code:

SHR   (4 3)
SHR   (1 3)
SHR   (4 4)


Input:

Code:

SHR (3 3) -                       
SHR (03 03) -                     
       STAGE SHR (1 3) NERAS -   
       SHAREOPTIONS(2 3) -       
       SHR(3,3) -                 
       SHR(2,3) -                 
       SHR(4,3) -                 
       SHR (04,03) -             
       SHR(4,4) -                 
       SHR(04,04) -               
       SHR(3,3) -                 
       SHR (1,3) -               
       SHR (01,03) -             
         SHR    ( 3   4 )         
         SHR  (3 , 4 )           
        SHAREOPTIONS (    1 , 4) 
        SHAREOPTIONS (    2 , 1) 
        SHAREOPTIONS (    1 , 2) 
        SHAREOPTIONS (    1 , 3) 
        SHAREOPTIONS (   01 , 03)
        SHAREOPTIONS ( 4 , 4)     
        SHAREOPTIONS ( 2 , 4)     
        SHAREOPTIONS ( 4, 3)     


Output:

We can see which are "0" as prefix did not changed.

Code:

SHR (2 3) -                       
SHR (03 03) -                     
       STAGE SHR (2 3) NERAS -   
       SHR (2 3) -               
       SHR (2 3) -               
       SHR (2 3) -               
       SHR (2 3) -               
       SHR (04,03) -             
       SHR (2 3) -               
       SHR(04,04) -               
       SHR (2 3) -               
       SHR (2 3) -               
       SHR (01,03) -             
         SHR (2 3)               
         SHR (2 3)               
        SHR (2 3)                 
        SHR (2 3)                 
        SHR (2 3)                 
        SHR (2 3)                 
        SHAREOPTIONS (   01 , 03)
        SHR (2 3)                 
        SHR (2 3)                 
        SHR (2 3)                 

Can we add some thing in this command to resolve this issue.
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1255
Location: Bamberg, Germany

PostPosted: Fri Apr 10, 2020 12:13 pm
Reply with quote

Try the following update, please.

Input:
Code:
/* REXX */                                                     
address "ISREDIT"                                             
"macro"                                                       
                                                               
"c r'(SHR|SHAREOPTIONS)"||,                                   
"[ ]*\([ ]*[0]?[1-4]([ ]+|[ ]*,[ ]*)[0]?[34][ ]*\)' 'SHR (2 3)' all"   
                                                               
exit


Output:
Code:
SHR(2 3) -                         
SHR(2 3) -                         
       STAGE SHR(2 3) NERAS -     
       SHR(2 3) -                 
       SHR(2 3) -                 
       SHR(2 3) -                 
       SHR(2 3) -                 
       SHR(2 3) -                 
       SHR(2 3) -                 
       SHR(2 3) -                 
       SHR(2 3) -                 
       SHR(2 3) -                 
       SHR(2 3) -                 
         SHR(2 3)                 
         SHR(2 3)                 
        SHR(2 3)                   
        SHAREOPTIONS (    2 , 1)   
        SHAREOPTIONS (    1 , 2)   
        SHR(2 3)                   
        SHR(2 3)                   
        SHR(2 3)                   
        SHR(2 3)                   
        SHR(2 3)
Back to top
View user's profile Send private message
chavinash2004

New User


Joined: 30 Jun 2010
Posts: 37
Location: hyderabad

PostPosted: Fri Apr 10, 2020 1:24 pm
Reply with quote

Joerg.Findeisen wrote:
Try the following update, please.

Input:
Code:
/* REXX */                                                     
address "ISREDIT"                                             
"macro"                                                       
                                                               
"c r'(SHR|SHAREOPTIONS)"||,                                   
"[ ]*\([ ]*[0]?[1-4]([ ]+|[ ]*,[ ]*)[0]?[34][ ]*\)' 'SHR (2 3)' all"   
                                                               
exit


Output:
Code:
SHR(2 3) -                         
SHR(2 3) -                         
       STAGE SHR(2 3) NERAS -     
       SHR(2 3) -                 
       SHR(2 3) -                 
       SHR(2 3) -                 
       SHR(2 3) -                 
       SHR(2 3) -                 
       SHR(2 3) -                 
       SHR(2 3) -                 
       SHR(2 3) -                 
       SHR(2 3) -                 
       SHR(2 3) -                 
         SHR(2 3)                 
         SHR(2 3)                 
        SHR(2 3)                   
        SHAREOPTIONS (    2 , 1)   
        SHAREOPTIONS (    1 , 2)   
        SHR(2 3)                   
        SHR(2 3)                   
        SHR(2 3)                   
        SHR(2 3)                   
        SHR(2 3)


Thank you Joerg. It worked.

Looks like you are Master of shortcuts icon_smile.gif.

Good to see you in this forum.
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 -> CLIST & REXX Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts CVDA value for RRDS VSAM dataset. CICS 2
Search our Forums:

Back to Top