Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7705089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:48:30+00:00 2026-05-31T23:48:30+00:00

I used the below jcl to modify the existing ps. I was able to

  • 0

I used the below jcl to modify the existing ps. I was able to modify the parameters. but i am getting an I/o error.

//TXXXXXSP JOB (MOD),’PRAMOD’,CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1),

// NOTIFY=&SYSUID
//FIXPDS EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT2 DD DSN=XXXXXX.CREATE.GDG,
// DISP=MOD,SPACE=(TRK,(10,10,0),RLSE),UNIT=SYSDA,
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)
//SYSUT1 DD *
/*
//

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T23:48:31+00:00Added an answer on May 31, 2026 at 11:48 pm

    It looks as though you are trying to change the attributes of a dataset by specifying DISP=MOD. The documented purpose of MOD is to indicate either that the data set exists and records are to be added to the end of it or a new data set is to be created.

    However, it can be used to change the attributes of a dataset. I would suggest that you need to be careful doing this as you can easily corrupt your dataset. For example it might be reasonable to change the DCB for an existing PS, but if that PS data already contained data you could corrupt it. I’ve not tried this but I believe you can increase the space providing you don’t pass 16 extents. I believe you can even change a PS into a PDS again, don’t expect to be able to see the any data again.

    I think the main point of this is that it is not recommended. Rather than run the risks maybe use your job to copy the dataset using LIKE and overriding the things you want to change. Then when your happy delete the old dataset and rename the new one to the old name.

    The following examples have been done from memory so there may be minor syntactical errors with them. You need to specify SPACE but remove any other parameter that you do no need to ‘fix’.

    Eg. for PS

    //FIXPS    EXEC PGM=IEBGENER
    //SYSPRINT DD SYSOUT=*                            
    //SYSUT1   DD DSN=XXXXXX.CREATE.GDG,DISP=SHR     
    //SYSUT2   DD DSN=XXXXXX.CREATE.GDG.NEW, 
    //            DISP=(NEW,CATLG,DELETE), 
    //            SPACE=(TRK,(10,10,0),RLSE),UNIT=SYSDA,
    //            DCB=(RECFM=FB,LRECL=80,BLKSIZE=800),           
    //            LIKE=XXXXXX.CREATE.GDG             
    

    Eg. for PDS

    //FIXPDS    EXEC PGM=IEBCOPY
    //SYSPRINT DD SYSOUT=*                            
    //SYSUT1   DD DSN=XXXXXX.CREATE.GDG,DISP=SHR     
    //SYSUT2   DD DSN=XXXXXX.CREATE.GDG.NEW, 
    //            DISP=(NEW,CATLG,DELETE), 
    //            SPACE=(TRK,(10,10,0),RLSE),UNIT=SYSDA,
    //            DCB=(RECFM=FB,LRECL=80,BLKSIZE=800),           
    //            LIKE=XXXXXX.CREATE.GDG             
    //SYSUT3   DD UNIT=SYSDA,SPACE=(TRK,(30,30),RLSE) 
    //SYSUT4   DD UNIT=SYSDA,SPACE=(TRK,(30,30),RLSE) 
    //SYSIN    DD *                                   
     C I=SYSUT1,O=SYSUT2                              
    /*                                        
    

    For more info see DISP parameter in chapter 12 of the JCL reference manual http://publibz.boulder.ibm.com/epubs/pdf/iea2b6b0.pdf

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've used the below jcl: //STEP1 EXEC PGM=IEBGENER //SYSUT1 DD DUMMY,RECFM=FB,LRECL=80 //SYSUT2 DD DSN=RK.MYDIR.FILES(NEW1),DISP=(SHR)
i used below code for getting contacts in to our application. this code is
I used below code to read sub context news from bbc site,but it is
I used below code to insert a new info to a existing contacts, it's
I am trying to make a jquery function, and used below code, but not
UPDATED I used below solutions (loading Image from stream), but get new problem. img
I have used below code to attach quckboook events // Subscribe to UI events...
I want to Display Google Map into my wordpress site. I have used below
I used codes below to display a image on an UIBarButtonItem UIBarButtonItem *myButtonItem; myButtonItem=
I had used the below code to get the row index of the UIPickerView

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.