View previous topic :: View next topic
|
Author |
Message |
shreedhar
New User
Joined: 05 Feb 2007 Posts: 4 Location: Pune
|
|
|
|
What would be the abend disposition for the following DISP parm.
DISP=(,CATLG). |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
Back to top |
|
|
muthuvel
Active User
Joined: 29 Nov 2005 Posts: 217 Location: Canada
|
|
|
|
Hi,
For DISP parameter in JCL,the default abnormal termination disposition is DELETE for a NEW data set or KEEP for an existing data set.
In this case it will be KEEP
Correct me if i am wrong. |
|
Back to top |
|
|
shreedhar
New User
Joined: 05 Feb 2007 Posts: 4 Location: Pune
|
|
|
|
I guess the disposition parameter for (,CATLG) would be (NEW,CATLG,CATLG) because CATLG is mentioned for normal disposition, that would be considered for abnormal disposition as well in case of missing abnormal disposition parm. Correct me if i am wrong. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
muthuvel wrote: |
For DISP parameter in JCL,the default abnormal termination disposition is DELETE for a NEW data set or KEEP for an existing data set.
In this case it will be KEEP
Correct me if i am wrong. |
OK, consider this a correction, since the "status subparameter" was omitted, it defaulted to NEW and as you said, "the default abnormal termination disposition is DELETE for a NEW data set ". |
|
Back to top |
|
|
muthuvel
Active User
Joined: 29 Nov 2005 Posts: 217 Location: Canada
|
|
|
|
Thanks for the correction
i agree it has to be delete.. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
shreedhar wrote: |
I guess the disposition parameter for (,CATLG) would be (NEW,CATLG,CATLG) because CATLG is mentioned for normal disposition, that would be considered for abnormal disposition as well in case of missing abnormal disposition parm. Correct me if i am wrong. |
Again, follow the LINK and be corrected... |
|
Back to top |
|
|
shreedhar
New User
Joined: 05 Feb 2007 Posts: 4 Location: Pune
|
|
|
|
Ya i followed the link, it has to be catalog.
2nd subparm was catlg, and 2nd is implied to the 3rd one.
Please confirm. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
As all can see from the different "understandings" it is advisable to code all 3 parameters when creating a dataset. It is usually ok to code disp=old or disp=shr when reading an existing dataset, but specifying all 3 in the jcl removes any doubt.
There are also ways a site can modify the uncoded parameters via a reader exit or other intercept. |
|
Back to top |
|
|
narendra_12d
New User
Joined: 07 Sep 2006 Posts: 7 Location: bangalore
|
|
|
|
as per my concern, if we coded DISP=(,catlg), upon normaltermination the dataset will be catalogued, upon abnormal termination the dataset will be deleted, nothing going to give abend. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
What is the question?
Quote: |
nothing going to give abend. |
I do not understand . . . .
Please clarify. |
|
Back to top |
|
|
narendra_12d
New User
Joined: 07 Sep 2006 Posts: 7 Location: bangalore
|
|
|
|
as per my concern, if we coded DISP=(,catlg), upon normaltermination the dataset will be catalogued, upon abnormal termination the dataset will be deleted,
if any mistakes plez answer me correctly, thx in advance.
cheers,
narendra. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello Narendra,
I'd recommend that you become both familiar and comfortable with the IBM manuals - they are available on this site.
From your post:
Quote: |
as per my concern, if we coded DISP=(,catlg), upon normaltermination the dataset will be catalogued, upon abnormal termination the dataset will be deleted,
if any mistakes plez answer me correctly, thx in advance.
|
Here's the info from the manual:
Quote: |
Effect of Abnormal Termination During Execution
When a step abnormally terminates but is not automatically restarted, its data sets are disposed of as specified by the abnormal termination disposition. If an abnormal termination disposition is not specified, the normal termination disposition is processed.
If a DD statement in an abnormally terminating step requests a data set that was cataloged or kept in an earlier step and if the statement does not specify an abnormal termination disposition, the system uses the disposition specified in the earlier step.
|
|
|
Back to top |
|
|
babumiya.shaik Currently Banned New User
Joined: 05 Feb 2007 Posts: 1 Location: mumbai
|
|
|
|
hi,
what is that q? yr
disp(,catlg) it will take disp(new,catlg,delete)
so it'go's to it date set is taking onley new dataset stored into catlog
if it is succssful excution it will be it will be catalaged other wise
it will be deleted deleted |
|
Back to top |
|
|
bajibabu
New User
Joined: 01 Aug 2005 Posts: 5 Location: hyderabad
|
|
|
|
Hi All,
DISP=(,CATLG) MEANS (NEW,CATLG,CATLG).....
THIS IS THE CORRECT ANS.
Babu... |
|
Back to top |
|
|
priya
Moderator
Joined: 24 Jul 2003 Posts: 568 Location: Bangalore
|
|
|
|
William Thompson, can you please clarify...
I still hope, DISP=NEW,CATLG,CATLG is the right answer!!! |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
I wonder why instead of 15 post of pure speculation nobody came up with a s****d job like this
Code: |
****** ***************************** Top of Data ******************************
000001 //ENRICOMF JOB (H001),'DISP01',NOTIFY=ENRICO,
000002 // CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1)
000003 //* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
000004 //* DSN=ENRICO.MF.JCLLIB(DISP01)
000005 //* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
000006 //*
000007 //S1 EXEC PGM=ABEND806
000008 //SYSPRINT DD SYSOUT=*
000009 //DISP01 DD DISP=(,CATLG),DSN=ENRICO.DISP.TEST,
000010 // UNIT=SYSDA,SPACE=(CYL,1)
|
and posted the result
here it is
Code: |
********************************* TOP OF DATA **********************************
J E S 2 J O B L O G -- S Y S T E M H E R C -- N O
15.57.19 JOB00912 ---- FRIDAY, 15 FEB 2008 ----
15.57.19 JOB00912 IRR010I USERID ENRICO IS ASSIGNED TO THIS JOB.
15.57.19 JOB00912 ICH70001I ENRICO LAST ACCESS AT 15:13:17 ON TUESDAY, FEBRUA
15.57.19 JOB00912 $HASP373 ENRICOMF STARTED - INIT 1 - CLASS A - SYS HERC
15.57.19 JOB00912 IEF403I ENRICOMF - STARTED - TIME=15.57.19
15.57.20 JOB00912 CSV003I REQUESTED MODULE ABEND806 NOT FOUND
15.57.20 JOB00912 CSV028I ABEND806-04 JOBNAME=ENRICOMF STEPNAME=S1
15.57.20 JOB00912 IEA995I SYMPTOM DUMP OUTPUT
SYSTEM COMPLETION CODE=806 REASON CODE=00000004
*** snipped some useless lines
15.57.20 JOB00912 IEF450I ENRICOMF S1 - ABEND=S806 U0000 REASON=00000004
TIME=15.57.20
15.57.20 JOB00912 HTRT01I CPU (Total)
15.57.20 JOB00912 HTRT02I Jobname Stepname ProcStep RC I/O hh:mm:ss.th
15.57.20 JOB00912 HTRT03I ENRICOMF S1 S806 2 00.04
15.57.20 JOB00912 IEF404I ENRICOMF - ENDED - TIME=15.57.20
15.57.20 JOB00912 HTRT06I
15.57.20 JOB00912 HTRT04I ENRICOMF Job Service Totals 2 00.04
15.57.20 JOB00912 $HASP395 ENRICOMF ENDED
------ JES2 JOB STATISTICS ------
15 FEB 2008 JOB EXECUTION DATE
10 CARDS READ
94 SYSOUT PRINT RECORDS
0 SYSOUT PUNCH RECORDS
6 SYSOUT SPOOL KBYTES
0.00 MINUTES EXECUTION TIME
1 //ENRICOMF JOB (H001),'DISP01',NOTIFY=ENRICO,
// CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1)
//* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
//* DSN=ENRICO.MF.JCLLIB(GENJCL)
//* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
//*
2 //S1 EXEC PGM=ABEND806
3 //SYSPRINT DD SYSOUT=*
4 //DISP01 DD DISP=(,CATLG),DSN=ENRICO.DISP.TEST,
// UNIT=SYSDA,SPACE=(CYL,1)
ICH70001I ENRICO LAST ACCESS AT 15:13:17 ON TUESDAY, FEBRUARY 12, 2008
IEF236I ALLOC. FOR ENRICOMF S1
IEF237I JES2 ALLOCATED TO SYSPRINT
IGD100I 020E ALLOCATED TO DDNAME DISP01 DATACLAS ( )
CSV003I REQUESTED MODULE ABEND806 NOT FOUND
CSV028I ABEND806-04 JOBNAME=ENRICOMF STEPNAME=S1
IEA995I SYMPTOM DUMP OUTPUT
SYSTEM COMPLETION CODE=806 REASON CODE=00000004
TIME=15.57.20 SEQ=00010 CPU=0000 ASID=0020
PSW AT TIME OF ERROR 070C1000 81131874 ILC 2 INTC 0D
NO ACTIVE MODULE FOUND
NAME=UNKNOWN
*** snipped some useless lines
IEF472I ENRICOMF S1 - COMPLETION CODE - SYSTEM=806 USER=0000 REASON=00000004
IEF285I ENRICO.ENRICOMF.JOB00912.D0000101.? SYSOUT
IEF285I ENRICO.DISP.TEST CATALOGED
IEF285I VOL SER NOS= H29WK2.
HTRT05I ------------------------------------------------------------------------
- -
- Program Name ABEND806 hh:mm:ss.th -
- Step Name S1 Elapsed Time 00.14 -
- Procedure Step TCB CPU Time 00.04 -
- Return Code S806 SRB CPU Time 00.00 -
- Total I/O 2 Total CPU Time 00.04 -
- Service Units 268 -
- -
- Region Size 4096K Pages Paged 0 -
- Data/Hiperspace 0M Pages Swapped 0 -
- ASID Swaps 0 Pages Stolen 0 -
- VIO (In and Out) 0 -
- -
- --------Below 16Meg-------- --------Above 16Meg-------- -
- Private Area 12268K Private Area 1972224K -
- Max Allocated 4K Max Allocated 4K -
- LSQA And SWA 236K LSQA And SWA 9744K -
- -
------------------------------------------------------------------------
IEF373I STEP/S1 /START 2008046.1557
IEF374I STEP/S1 /STOP 2008046.1557 CPU 0MIN 00.04SEC SRB 0MIN 00.00S
IEF375I JOB/ENRICOMF/START 2008046.1557
IEF376I JOB/ENRICOMF/STOP 2008046.1557 CPU 0MIN 00.04SEC SRB 0MIN 00.00S
******************************** BOTTOM OF DATA ********************************
|
the dataset gets cataloged |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Why are we re-hashing all these old topics??? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
My oversight, I watch the forum by "new posts since last login"
and sometime I get carried away |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
Everyone on this thread who has given the wrong answer and has actually seen that wrong answer happen, raise your hand.
.
.
.
.
.
.
I'm waiting.
Dick's answer (from the manual - great source!) is correct. |
|
Back to top |
|
|
|