MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

is it possible to involve the JCL variables inside IDCAMS

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
adous_sg
Beginner


Joined: 13 Feb 2004
Posts: 25
Topics: 9

PostPosted: Thu Feb 19, 2004 9:05 pm    Post subject: is it possible to involve the JCL variables inside IDCAMS Reply with quote

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
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Fri Feb 20, 2004 1:29 am    Post subject: Reply with quote

No, You can't pass variables to 'DD *'.
Back to top
View user's profile Send private message Send e-mail
adous_sg
Beginner


Joined: 13 Feb 2004
Posts: 25
Topics: 9

PostPosted: Fri Feb 20, 2004 1:48 am    Post subject: Reply with quote

So sad,
Anyway thanks
Back to top
View user's profile Send private message
shiv_swami
Beginner


Joined: 29 Nov 2003
Posts: 68
Topics: 14

PostPosted: Fri Feb 20, 2004 5:44 am    Post subject: Reply with quote

Hi

You can not pass variables thru sysin but u can generate SYSIN DATA at run time dynamically. See following post for an example
http://www.mvsforums.com/helpboards/viewtopic.php?t=1235
_________________
Regards,
Shivprakash
Back to top
View user's profile Send private message Yahoo Messenger
taterhead
Beginner


Joined: 02 Dec 2002
Posts: 7
Topics: 0

PostPosted: Fri Feb 20, 2004 9:45 am    Post subject: Reply with quote

You can also do it with TSO:
Code:


//STEP EXEC PGM=IKJEFT01,
// PARM='DELETE &MYPRE..XXXX.XXXX'

Back to top
View user's profile Send private message
adous_sg
Beginner


Joined: 13 Feb 2004
Posts: 25
Topics: 9

PostPosted: Thu Feb 26, 2004 4:53 am    Post subject: Reply with quote

Thanks all
Back to top
View user's profile Send private message
Venkata Ramana Reddy
Beginner


Joined: 02 Dec 2002
Posts: 70
Topics: 19
Location: California

PostPosted: Thu Feb 26, 2004 9:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group