MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Why (0) instead of (+1) in this job?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
ranga_subham
Intermediate


Joined: 31 Jan 2006
Posts: 255
Topics: 72

PostPosted: Wed May 10, 2006 9:20 am    Post subject: Why (0) instead of (+1) in this job? Reply with quote

Hi,

I have a job using ADRDSSU utility.

In this job, it is using (0) instead of (+1) in the include in SYSIN DD *

Should it have been (+1). Can you explain why it is (0)?

Code:

//*********************************************************************
//* JS100 COPY DATA DATASETS TO DRA TAPE (ADRDSSU)                    *
//*********************************************************************
//JS100   EXEC PGM=ADRDSSU,                                             
//            REGION=4096K                                             
//*                                                                     
//SYSIN     DD *                                                       
    DUMP OUTDDNAME(TAPE)                                              -
      DATASET(INCLUDE(XXXXX.XXXXX.XXXX.XXXXXXX1(+0),                  -
                      XXXXX.XXXXX.XXXX.XXXXXXX2(+0),                  -
                      XXXXX.XXXXX.XXXX.XXXXXXX3(+0),                  -
                      XXXXX.XXXXX.XXXX.XXXXXXX4(+0)        ))         -
      TOLERATE(ENQFAILURE) FORCECP(0) COMPRESS                         
/*                                                                     
//*                                                                     
//TAPE      DD DSN=XXXXX.XXXXX.XXXXXXXX.XXXX5(+1),    ** BKUP TAPE   **
//             DISP=(NEW,CATLG,DELETE),                                 
//             MGMTCLAS=XXXXXX01,                                       
//             UNIT=TAPEX,                                             
//             DCB=XXX3.XXXX,                                           
//             LABEL=001                                               
//*                                                                     
//F01       DD DSN=XXXXX.XXXXX.XXXX.XXXXXXX1(+1),                       
//             DISP=(SHR,KEEP,KEEP)                                     
//F02       DD DSN=XXXXX.XXXXX.XXXX.XXXXXXX2(+1),                       
//             DISP=(SHR,KEEP,KEEP)                                     
//F03       DD DSN=XXXXX.XXXXX.XXXX.XXXXXXX3(+1),                       
//             DISP=(SHR,KEEP,KEEP)                                     
//F04       DD DSN=XXXXX.XXXXX.XXXX.XXXXXXX4(+1),                       
//             DISP=(SHR,KEEP,KEEP)                                     
//*                     
//SYSPRINT  DD SYSOUT=* 


All these (+1) are created in the JS090 step above.

Please explain and thanks in advance.
_________________
Ranga
*****
None of us is as smart as all of us - Ken Blanchard
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Wed May 10, 2006 9:24 am    Post subject: Reply with quote

ranga_subham,

Please Search before posting. Check this link which discusses the same issue

http://www.mvsforums.com/helpboards/viewtopic.php?t=1251&highlight=gdg

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Wed May 10, 2006 2:00 pm    Post subject: Reply with quote

Additional info:

For files referenced in JCL statements, the value +1 must be used while the job is executing.

For files referenced in control statements, the system is probably doing a new catalog search during that step so the files created in a prior step are now (0).
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
ranga_subham
Intermediate


Joined: 31 Jan 2006
Posts: 255
Topics: 72

PostPosted: Wed May 10, 2006 8:20 pm    Post subject: Reply with quote

Kolusu, My doubt was on ADRDSSU. But, I have not found any relavant info in the given link. I am aware of the the info provided in the link. But, I am not looking for that.

I was trying to ask why it had to be (0) instead of (+1) when you use ADRDSSU utility. It is using same GDGs at all places. Does ADRDSSU have special requirement to supply the GDGs like this? Because, it is an existing JCL in our system. I copy pasted it and changed the GDG names alone.

Sorry if my Q is confusing. Pls let me know if you need more details.
_________________
Ranga
*****
None of us is as smart as all of us - Ken Blanchard
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu May 11, 2006 7:45 am    Post subject: Reply with quote

ranga_subham,

It does not matter which utility you are using. If the versions are created in the same job and all the next subsquent steps referring the new gdg version should have +1 coded. period.

If I understand correctly they are dumping the 0 gen to tape as they are creating a new gen in the same job.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Thu May 11, 2006 8:05 am    Post subject: Reply with quote

Did you see my response regarding files named in control statements? Question
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
ranga_subham
Intermediate


Joined: 31 Jan 2006
Posts: 255
Topics: 72

PostPosted: Fri May 12, 2006 2:17 am    Post subject: Reply with quote

Thanks Bill Dennis & Kolusu.
_________________
Ranga
*****
None of us is as smart as all of us - Ken Blanchard
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group