Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SET command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Pandora-Box

Moderator


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

PostPosted: Thu Oct 08, 2009 1:03 pm    Post subject: SET command
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

Senior Member


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

PostPosted: Thu Oct 08, 2009 2:34 pm    Post subject:
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: 1703
Location: Australia

PostPosted: Thu Oct 08, 2009 2:36 pm    Post subject:
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

Moderator


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

PostPosted: Thu Oct 08, 2009 3:14 pm    Post subject:
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: 1703
Location: Australia

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

Hi Prem,

glad to hear it worked.


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

Moderator


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

PostPosted: Thu Oct 08, 2009 3:37 pm    Post subject:
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    Post subject:
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    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 TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Customizing the ISPF HILITE Command Pedro TSO/ISPF 3 Fri Mar 03, 2017 11:49 pm
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us