View previous topic :: View next topic
|
Author |
Message |
punetiger
New User
Joined: 18 Apr 2007 Posts: 1 Location: Pune
|
|
|
|
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 |
|
|
rz061m
New User
Joined: 03 Mar 2006 Posts: 48 Location: Chennai
|
|
|
|
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 |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I'm surprised it does work properly without a SYSPRINT DD statement. |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
Hi,
We are talking about the below statement ...
Code: |
//DDNAME DD DSN=A.B.C |
Hope you are confused with other statement? |
|
Back to top |
|
|
balanim
New User
Joined: 29 Nov 2006 Posts: 6 Location: India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Expat is right.. she is telling ...............
The last time that Expat looked, Expat was most definitely NOT SHE |
|
Back to top |
|
|
balanim
New User
Joined: 29 Nov 2006 Posts: 6 Location: India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
How were you to know |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Expat -
Look harder...
O. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
offer71
I had come up with some reparti for your post, but however decorum prevents me to share them within a mixed forum |
|
Back to top |
|
|
|