Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 1542
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: 1542
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: 1542
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 MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts Failure after DIR command Hank Watson All Other Mainframe Topics 2 Tue Aug 29, 2017 3:14 am
No new posts Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm
This topic is locked: you cannot edit posts or make replies. rexx to create a tso command Bharath Vikraman CLIST & REXX 1 Tue Aug 08, 2017 3:32 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us