Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

ERROR OPENING opening TAPE dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: ERROR OPENING opening TAPE dataset
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: 1754
Location: Bloomington, IL

PostPosted: Wed May 09, 2012 6:28 pm    Post subject:
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: 1787
Location: UK

PostPosted: Wed May 09, 2012 6:59 pm    Post subject:
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    Post subject: Here is the SYSPRINT message
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

Site Director


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

PostPosted: Wed May 09, 2012 9:55 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts Length of Tape file Mohan Kothakota JCL & VSAM 9 Thu Apr 20, 2017 10:24 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Opening in Allianz India- T... Rajesh Gopinathan Mainframe Jobs 0 Wed Apr 19, 2017 11:33 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us