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

SET command


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

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Thu Oct 08, 2009 1:03 pm
Reply with quote

Hi,

We are dynamically generating the set command in a dataset in JOB1

Code:


//SET VAR=XXXX



In JOB2

I want to include this

I cant make use of the INCLUDE parm because I cant access the system library how would I use it in my job to dynamically change the value of the symbolic parm in my JOB2?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Oct 08, 2009 2:34 pm
Reply with quote

Use other SET verb in JOB2... icon_confused.gif icon_rolleyes.gif
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Oct 08, 2009 2:36 pm
Reply with quote

Hi,

if I understand your request correctly, you just need to add the following to your JCL
Code:
//ANYNAME JCLLIB ORDER=dsname                 
//        INCLUDE MEMBER=memname             



Gerry
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Thu Oct 08, 2009 3:14 pm
Reply with quote

Hi Gerry,

Thanks it worked as per my requirement.

Regards,
Prem
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Oct 08, 2009 3:18 pm
Reply with quote

Hi Prem,

glad to hear it worked.


Gerry
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Thu Oct 08, 2009 3:37 pm
Reply with quote

Hi Gerry,

I got to know just now we can't use JCLLIB ORDER in production and now is is posible to acheive the same when we dynamically create the SET statement through a flat file.How to use that?
Back to top
View user's profile Send private message
mtaylor

Active User


Joined: 20 Feb 2009
Posts: 108
Location: Kansas City

PostPosted: Thu Oct 08, 2009 6:04 pm
Reply with quote

You'll have to reconsider your design/approach. Using INCLUDE is the only way to 'insert' a SET statement into a JCL other than creating your own macro processor of some sort:

Code:

* psuedo code:

set sentinel_char = '%'
open output_file
open input_file
c = input_file.getChar()
while c != EOF do
  if c == sentinel_char
    insert my_statements
  else
    output_file.write(c)
  end-if
  c = input_file.getChar()
end-do
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 RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts LTJ command CA Products 4
No new posts Query on edit primary command CLIST & REXX 5
Search our Forums:

Back to Top