Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Function of DD Statement in this IDCAMS jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Function of DD Statement in this IDCAMS jcl
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    Post subject:
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: 680
Location: NJ

PostPosted: Wed Apr 25, 2007 10:49 pm    Post subject: JCL
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: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 26, 2007 12:44 pm    Post subject:
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: 680
Location: NJ

PostPosted: Thu Apr 26, 2007 6:46 pm    Post subject: Re: Function of DD Statement in this IDCAMS jcl
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 26, 2007 7:15 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 26, 2007 7:37 pm    Post subject:
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: 2360
Location: Israel

PostPosted: Thu Apr 26, 2007 7:38 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 26, 2007 7:41 pm    Post subject:
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    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 WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm
No new posts IDCAMS Allocate & Repro pahiker JCL & VSAM 9 Thu Aug 24, 2017 7:28 pm
No new posts Suppress value reported by BREAK in D... Learncoholic DFSORT/ICETOOL 3 Wed Aug 16, 2017 6:03 pm
No new posts ON 2 AND EVERY 1 - Statement ??? UmeySan COBOL Programming 2 Tue Jul 25, 2017 1:20 pm
No new posts What is the Extract Function in JCL dharmaraok JCL & VSAM 3 Wed Jun 14, 2017 9:12 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us