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

Function of DD Statement in this IDCAMS jcl


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

New User


Joined: 18 Apr 2007
Posts: 1
Location: Pune

PostPosted: Wed Apr 25, 2007 8:52 pm
Reply with quote

Hi,
Can you please clear one of my doubts?
We are using IDCAMS utility to delete entire versions of a GDG as shown below
But before that we are specifying a DD statement like

Code:

//STEP10 EXEC PGM=IDCAMS
//DDNAME DD DSN=A.B.C
//SYSOUT DD SYSOUT=*
//SYSIN DD *
  DELETE A.B.C.* PURGE
//


Here we are mentioning two times the DD Statement. I don't know why we are mentioning DD statement two times.Actually this Job is running fine for the past few years in our client site and we cannot change that.But I want to know the significance of first DD statement.
Back to top
View user's profile Send private message
rz061m

New User


Joined: 03 Mar 2006
Posts: 48
Location: Chennai

PostPosted: Wed Apr 25, 2007 10:06 pm
Reply with quote

hi punetiger,

Your jcl will work even without that DD statement. Its not compulsary to mention the file to be deleted beforehand.
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Wed Apr 25, 2007 10:49 pm
Reply with quote

Punetiger,

Actually the job will work withouth that DD statment ... Hope for reference they might have programmed .... nothing wrong in that ...

Quote:
Actually this Job is running fine for the past few years in our client site and we cannot change that


Since it's running fine then you can leave ... if you want to change just get the prior approval from the team and do the same for your safer side ...
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Apr 26, 2007 12:44 pm
Reply with quote

I'm surprised it does work properly without a SYSPRINT DD statement.
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Thu Apr 26, 2007 6:46 pm
Reply with quote

Hi,

We are talking about the below statement ...

Code:
//DDNAME DD DSN=A.B.C


Hope you are confused with other statement? icon_cry.gif
Back to top
View user's profile Send private message
balanim

New User


Joined: 29 Nov 2006
Posts: 6
Location: India

PostPosted: Thu Apr 26, 2007 7:11 pm
Reply with quote

Hi
khamarutheen

Expat is right.. she is telling when we use IDCAMS.. there are required DD statements if they are not coded the JCL with give error.

Frankly speaking I got an error when itried to run this JCL..

cheers
Bnim
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Apr 26, 2007 7:15 pm
Reply with quote

Expat is right.. she is telling ...............

The last time that Expat looked, Expat was most definitely NOT SHE
Back to top
View user's profile Send private message
balanim

New User


Joined: 29 Nov 2006
Posts: 6
Location: India

PostPosted: Thu Apr 26, 2007 7:27 pm
Reply with quote

expat wrote:
Expat is right.. she is telling ...............

The last time that Expat looked, Expat was most definitely NOT SHE



Sorry Expat
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Apr 26, 2007 7:37 pm
Reply with quote

How were you to know icon_confused.gif
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Apr 26, 2007 7:38 pm
Reply with quote

Expat -

Look harder... icon_biggrin.gif

O.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Apr 26, 2007 7:41 pm
Reply with quote

offer71

I had come up with some reparti for your post, but however decorum prevents me to share them within a mixed forum icon_smile.gif
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 Calling an Open C library function in... CICS 1
No new posts DATE2 function SYNCSORT 15
No new posts Help on PL/I jsonPutValue function PL/I & Assembler 8
No new posts how to use Tso outtrap external function All Other Mainframe Topics 8
No new posts INSYNC option with same function as I... JCL & VSAM 0
Search our Forums:

Back to Top