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

ERROR OPENING opening TAPE dataset


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

New User


Joined: 18 Mar 2008
Posts: 34
Location: INDIA

PostPosted: Wed May 09, 2012 5:55 pm
Reply with quote

The tape datasets are defined as below
Code:
//OUTPUT01 DD  DSN=ABC(+1),                 
//             DISP=(,CATLG,DELETE),                       
//             DCB=(GDGM,RECFM=VB,LRECL=4092,BLKSIZE=23476),
//             LABEL=(1,SL),                               
//             UNIT=CART,                                   
//             VOL=(,RETAIN)                               
//OUTPUT02 DD  DSN=EFG(+1),                   
//             DISP=(,CATLG,DELETE),                         
//             DCB=(GDGM,RECFM=VB,LRECL=4092,BLKSIZE=23476), 
//             LABEL=(2,SL),                                 
//             UNIT=CART,                                     
//             VOL=(,,,,REF=*.OUTPUT01)     


When i am using these dataset as input in another job as below in the same step. when i restart job from this step , it copies the first datset but failes to open the other DATASET EFG(0) and abends. while running the complete job from top works successfully . any pointers on this for help
Code:
//INDD01   DD  DSN=ABC(0),
//             DISP=SHR,                   
//             UNIT=CART,                 
//             VOL=(,RETAIN)               
//OUTDD01  DD  DSN=XXXXX,   
//             DISP=SHR,                   
//             AMP=('BUFNI=10','BUFND=20')
//INDD02   DD  DSN=EFG(0),
//             DISP=SHR,                   
//             UNIT=CART,                 
//             VOL=(,,,,REF=*.INDD01)     
//OUTDD02  DD  DSN=YYYYYY,   
//             DISP=SHR,                   
//             AMP=('BUFNI=10','BUFND=20')
//*
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Wed May 09, 2012 6:28 pm
Reply with quote

Well, you have carefully omitted any actual information, such as the full JCL (in code tags, please), the abend code, and the JES message log (also in code tags). Please try again.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Wed May 09, 2012 6:59 pm
Reply with quote

Suggest you learn a bit more JCL - when reading a gdg you do not need to specify the device (UNIT=CART in this case). When reading a tape you should use DISP=OLD - a tape cannot be shared. You should, probably, code BLKSIZE=0 and get a better blocksize decided by the system.

How can it be 'the same step' if it is a different job? What restart? You are far too vague. I know that Wednesday is generally psychic day but it was this morning not after lunch.
Back to top
View user's profile Send private message
dilpreet

New User


Joined: 18 Mar 2008
Posts: 34
Location: INDIA

PostPosted: Wed May 09, 2012 7:08 pm
Reply with quote

REPRO INFILE(INDD01) OUTFILE(OUTDD01)
IDC0005I NUMBER OF RECORDS PROCESSED WAS 592848
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 0

REPRO INFILE(INDD02) OUTFILE(OUTDD02)
IDC3300I ERROR OPENING C8AYDG.VMPA.DSSAGTS.G3690V00
IDC3321I ** OPEN/CLOSE/EOV ABEND EXIT TAKEN
IDC0005I NUMBER OF RECORDS PROCESSED WAS 0
IDC3003I FUNCTION TERMINATED. CONDITION CODE IS 12

IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 12
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 May 09, 2012 9:55 pm
Reply with quote

Hello,

Somewhere, there is more specific diagnostic information. You need to post this as well.
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 Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
Search our Forums:

Back to Top