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

IDCAMS CREATING PROBLEM IN DELETING DATASET


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

New User


Joined: 02 Jul 2008
Posts: 2
Location: hyderabad

PostPosted: Fri Jul 04, 2008 1:27 pm
Reply with quote

Hi,
when i tried to delete my dataset using iefbr14 it ran fine without any error code.while when i tried to delete the dataset with IDCAMS it issued an condition code of 16.
Can anyone explain why is that so

My jcl is as follows with IEFBR14.
//UEDBS10A JOB 'RAHUL',CLASS=C,NOTIFY=&SYSUID
//STEP1 EXEC PGM=IEFBR14
//DD1 DD DSN=UEDBS10.TEMPDS,DISP=(MOD,DELETE,DELETE)
//
My jcl is as follows with IDCAMS:
//UEDBS10A JOB 'RAHUL',CLASS=C,NOTIFY=&SYSUID
//STEP1 EXEC PGM=IDCAMS
//DD1 DD DSN=UEDBS10.TEMPDS,DISP=(MOD,DELETE,DELETE)
//
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Jul 04, 2008 1:30 pm
Reply with quote

Quote:
IDCAMS CREATING PROBLEM IN DELETING DATASET

IDCAMS does not create any problem,
the way You are using it creates a problem

IDCAMS will return a condition code 16 for a missing SYSPRINT ddname
the way You are using idcams is not the way it should
JCL ( in Your snippet ) does everything as in the IEFBR14 case
IDCAMS is supposed to have a SYSIN dd containing the IDCAMS commands
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 FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Deleting a Tape file JCL & VSAM 14
Search our Forums:

Back to Top