Master the Mainframe Global User Group

Expand all | Collapse all

Any limits on our Z/OS activities?

  • 1.  Any limits on our Z/OS activities?

    Posted Fri September 04, 2020 10:26 PM
    While waiting for the 2020 MTM, I was trying to learn some new things and experiment a bit on the mainframe we were granted access to for the 2019 contest. Some of the things I've tried -for example copying a dataset using IEBGENER don't seem to be working and I'm getting an error about access rights. Are we limited to what we can do? (for security reasons, perhaps?) 
    Thank you.

    ------------------------------
    Hunter Coleman
    ------------------------------


  • 2.  RE: Any limits on our Z/OS activities?

    Posted Sun September 06, 2020 06:44 PM
    I'm sure there are, for instance we can't see anyone else's datasets.  The COBOL w/ VS Code LPAR doesn't have DB2 while the Master the Mainframe contest does, at least the 2019 LPAR. But IEBGENER? What are you trying to do and error are you getting?

    ------------------------------
    Edwin Ackerman
    ------------------------------



  • 3.  RE: Any limits on our Z/OS activities?

    Posted Mon September 07, 2020 04:54 PM
    Thanks for the reply Edwin. I was just trying to run an IEBGENER to copy an existing dataset into a new one.

    //SMITH2 JOB MSGCLASS=X,MSGLEVEL=(1,1)
    // EXEC PGM=IEBGENER
    //SYSIN DD DUMMY
    //SYSPRINT DD SYSOUT=X
    //SYSUT1 DD DISP=SHR,DSN=Z#####.PDS.DATA(SORTCITY)
    //SYSUT2 DD DISP=(NEW,CATLG),DSN=PDS.DATA(ABCTY)

    ABCTY is not being created, and when I check the status, it says 'insufficient access authority.' 
    (I of course have my IBM ID in the JCL when I run it, I edited it to share the JCL code on this forum.) 
    So I was wondering if we are not allowed to do things like copy datasets on this system. (outside of what is required within the MTM contest.)
    Thanks.

    ------------------------------
    Hunter Coleman
    ------------------------------



  • 4.  RE: Any limits on our Z/OS activities?

    Posted Mon September 07, 2020 06:58 PM
    @Hunter Coleman Your output data set, SYSUT2, is pointing to a dataset "PDS.DATA" - you have missed the Z#####. off the front so it is trying to create a new dataset which does not begin with your username, which you are forbidden to do.

    If you correct this, the second problem is that you are trying to create a new dataset as output when the dataset already exists. You are only creating a member of an existing dataset, so DISP=SHR should suffice.

    Does this help?



    ------------------------------
    Peter Vincent
    ------------------------------



  • 5.  RE: Any limits on our Z/OS activities?

    Posted Mon September 07, 2020 10:28 PM
    Thank you everyone for your help. Peter, I made the two changes you suggested and yes, that did fix it. Thank you for your assistance.

    ------------------------------
    Hunter Coleman
    ------------------------------