View previous topic :: View next topic |
Author |
Message |
ranga_subham Intermediate
Joined: 31 Jan 2006 Posts: 255 Topics: 72
|
Posted: Wed May 10, 2006 9:20 am Post subject: Why (0) instead of (+1) in this job? |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
Bill Dennis Advanced
Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Wed May 10, 2006 2:00 pm Post subject: |
|
|
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 |
|
|
ranga_subham Intermediate
Joined: 31 Jan 2006 Posts: 255 Topics: 72
|
Posted: Wed May 10, 2006 8:20 pm Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Thu May 11, 2006 7:45 am Post subject: |
|
|
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 |
|
|
Bill Dennis Advanced
Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Thu May 11, 2006 8:05 am Post subject: |
|
|
Did you see my response regarding files named in control statements? _________________ 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 |
|
|
ranga_subham Intermediate
Joined: 31 Jan 2006 Posts: 255 Topics: 72
|
Posted: Fri May 12, 2006 2:17 am Post subject: |
|
|
Thanks Bill Dennis & Kolusu. _________________ Ranga
*****
None of us is as smart as all of us - Ken Blanchard |
|
Back to top |
|
|
|
|