View previous topic :: View next topic |
Author |
Message |
adous_sg Beginner
Joined: 13 Feb 2004 Posts: 25 Topics: 9
|
Posted: Thu Feb 19, 2004 9:05 pm Post subject: is it possible to involve the JCL variables inside IDCAMS |
|
|
is it possible to involve the JCL variables inside IDCMAS utility SYSIN statment?
E.g.
// SET MYPRE='AAAA'
//STEP EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE &MYPRE..XXXX.XXXX (Expect to delete 'AAAA.XXXX.XXXX)
/*
//*
Have tried the above, it is failure. Is there any other way to involve the JCL variables inside IDCAMS????
Thanks in advance |
|
Back to top |
|
|
Dibakar Advanced
Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
|
Posted: Fri Feb 20, 2004 1:29 am Post subject: |
|
|
No, You can't pass variables to 'DD *'. |
|
Back to top |
|
|
adous_sg Beginner
Joined: 13 Feb 2004 Posts: 25 Topics: 9
|
Posted: Fri Feb 20, 2004 1:48 am Post subject: |
|
|
So sad,
Anyway thanks |
|
Back to top |
|
|
shiv_swami Beginner
Joined: 29 Nov 2003 Posts: 68 Topics: 14
|
|
Back to top |
|
|
taterhead Beginner
Joined: 02 Dec 2002 Posts: 7 Topics: 0
|
Posted: Fri Feb 20, 2004 9:45 am Post subject: |
|
|
You can also do it with TSO:
Code: |
//STEP EXEC PGM=IKJEFT01,
// PARM='DELETE &MYPRE..XXXX.XXXX'
|
|
|
Back to top |
|
|
adous_sg Beginner
Joined: 13 Feb 2004 Posts: 25 Topics: 9
|
Posted: Thu Feb 26, 2004 4:53 am Post subject: |
|
|
Thanks all |
|
Back to top |
|
|
Venkata Ramana Reddy Beginner
Joined: 02 Dec 2002 Posts: 70 Topics: 19 Location: California
|
Posted: Thu Feb 26, 2004 9:42 pm Post subject: |
|
|
This should work for you.....
Code: |
//DELDSN EXEC PGM=IEFBR14
//DSN01 DD DSN=&MYPRE..XXXX.XXXX,
// DISP=(MOD,DELETE,DELETE),SPACE=(TRK,(1,1))
|
_________________ Venkataramana
-- Good judgement comes from experience, and often experience comes from bad judgement. |
|
Back to top |
|
|
|
|