IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Abend due to Disp parameter DISP=(,CATLG)


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shreedhar

New User


Joined: 05 Feb 2007
Posts: 4
Location: Pune

PostPosted: Wed Feb 07, 2007 1:27 pm
Reply with quote

What would be the abend disposition for the following DISP parm.
DISP=(,CATLG).
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Wed Feb 07, 2007 2:32 pm
Reply with quote

The default, DELETE
Back to top
View user's profile Send private message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Canada

PostPosted: Wed Feb 07, 2007 2:41 pm
Reply with quote

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
View user's profile Send private message
shreedhar

New User


Joined: 05 Feb 2007
Posts: 4
Location: Pune

PostPosted: Wed Feb 07, 2007 3:00 pm
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Wed Feb 07, 2007 3:02 pm
Reply with quote

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
View user's profile Send private message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Canada

PostPosted: Wed Feb 07, 2007 3:09 pm
Reply with quote

Thanks for the correction icon_smile.gif
i agree it has to be delete..
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Wed Feb 07, 2007 3:17 pm
Reply with quote

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... icon_rolleyes.gif
Back to top
View user's profile Send private message
shreedhar

New User


Joined: 05 Feb 2007
Posts: 4
Location: Pune

PostPosted: Wed Feb 07, 2007 5:05 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Feb 07, 2007 9:02 pm
Reply with quote

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
View user's profile Send private message
narendra_12d

New User


Joined: 07 Sep 2006
Posts: 7
Location: bangalore

PostPosted: Wed Feb 07, 2007 9:43 pm
Reply with 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, nothing going to give abend.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Feb 07, 2007 11:13 pm
Reply with quote

Hello,

What is the question?
Quote:
nothing going to give abend.

I do not understand . . . .
Please clarify.
Back to top
View user's profile Send private message
narendra_12d

New User


Joined: 07 Sep 2006
Posts: 7
Location: bangalore

PostPosted: Wed Feb 07, 2007 11:23 pm
Reply with 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.
cheers,
narendra.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Feb 08, 2007 12:50 am
Reply with quote

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
View user's profile Send private message
babumiya.shaik
Currently Banned

New User


Joined: 05 Feb 2007
Posts: 1
Location: mumbai

PostPosted: Thu Feb 08, 2007 12:11 pm
Reply with quote

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
View user's profile Send private message
bajibabu

New User


Joined: 01 Aug 2005
Posts: 5
Location: hyderabad

PostPosted: Thu Feb 08, 2007 4:30 pm
Reply with quote

Hi All,

DISP=(,CATLG) MEANS (NEW,CATLG,CATLG).....
THIS IS THE CORRECT ANS.

Babu...
Back to top
View user's profile Send private message
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Fri Feb 15, 2008 8:09 pm
Reply with quote

William Thompson, can you please clarify...

I still hope, DISP=NEW,CATLG,CATLG is the right answer!!!
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Feb 15, 2008 8:37 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Feb 15, 2008 8:41 pm
Reply with quote

Why are we re-hashing all these old topics???
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Feb 15, 2008 8:43 pm
Reply with quote

My oversight, I watch the forum by "new posts since last login"
and sometime I get carried away icon_wink.gif
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Fri Feb 15, 2008 8:57 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts ISAM and abend S03B JCL & VSAM 10
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Abend S0C4 11 (Page Translation Excep... PL/I & Assembler 16
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
Search our Forums:

Back to Top