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

to pass variable value from a file to jcl


IBM Mainframe Forums -> JCL & VSAM
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
jetumax

New User


Joined: 02 Dec 2005
Posts: 8
Location: Mysore, INDIA

PostPosted: Tue May 08, 2007 3:15 pm
Reply with quote

Hi,

I have to pass a variable value from a FILE/GDG to a JCL's symbolic parameter. The JCL is in prodcution, so I can't create it dynamically.

Please help
JItendra
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Tue May 08, 2007 3:22 pm
Reply with quote

What is it that you need to pass that will materially affect the JCL ?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue May 08, 2007 3:33 pm
Reply with quote

Why can't you generate the parm dynamically? It is a very standard method...

O.
Back to top
View user's profile Send private message
jetumax

New User


Joined: 02 Dec 2005
Posts: 8
Location: Mysore, INDIA

PostPosted: Tue May 08, 2007 3:52 pm
Reply with quote

Please let me know on creating parm dynamically..

NOTE: The varibale value paased from file will be used to to fill symbolic parameter which in turn used to in Files and GDGs names.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Tue May 08, 2007 4:08 pm
Reply with quote

Quote:
The JCL is in prodcution, so I can't create it dynamically.


Quote:
Please let me know on creating parm dynamically..


This assumes that you may amend the JCL prior to submission. Is that the case ?

Also, is the JCL submitted via a scheduling software, which if you make changes to, or submit the job from a different source all need to be considered too.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1049
Location: Richmond, Virginia

PostPosted: Tue May 08, 2007 5:48 pm
Reply with quote

Here's how:

1. Job1 creates a member of a PROC dataset, say HLQ.INCL.PROC(MEM), with one record: "// SET SYMB=value"

2. Job2's JCL has:
a. a JCLLIB card referencing HLQ.INCL.PROC (unless HLQ.INCL.PROC is one of the system's procedure libraries)
b. a card "// INCLUDE MEMBER=MEM"
c. a later reference like "//DD1 DSN=HLQ.&SYMB"
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Tue May 08, 2007 10:22 pm
Reply with quote

Hello,

It may help if you post the JCL you are working with.
Back to top
View user's profile Send private message
Digvijay Singh

Active User


Joined: 20 Apr 2022
Posts: 148
Location: India

PostPosted: Mon Jun 13, 2022 9:29 pm
Reply with quote

Phrzby Phil wrote:
Here's how:

1. Job1 creates a member of a PROC dataset, say HLQ.INCL.PROC(MEM), with one record: "// SET SYMB=value"

2. Job2's JCL has:
a. a JCLLIB card referencing HLQ.INCL.PROC (unless HLQ.INCL.PROC is one of the system's procedure libraries)
b. a card "// INCLUDE MEMBER=MEM"
c. a later reference like "//DD1 DSN=HLQ.&SYMB"


I was going through this post and i have same requirement could you please explain this bit more.

Thanks
Back to top
View user's profile Send private message
Digvijay Singh

Active User


Joined: 20 Apr 2022
Posts: 148
Location: India

PostPosted: Mon Jun 13, 2022 9:37 pm
Reply with quote

adding on this question i have same requirmnet please if anyone can give any hint:

my 1sr job is creating one file which contains data as below

s
Code:
sssssssssssssssssssssssssssssssssssssssssssssssss
 VIEW       ALT0.Q.NDVR.INTERNAL.ETT3             
 Command ===>                                     
 ****** ***************************** Top of Data *
 000100 P761993                                   
 000200 QSYS                                       
 000300 0202251      --this one i want to use as symbolic parm
                                  to my next job                             
 ****** **************************** Bottom of Data


If you see in 3rd row i have one nbr which i want to use as symbolic parameter in my next job .

is this possible or what i can do to achieve this.

anyone any hint or suggestion.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2136
Location: USA

PostPosted: Mon Jun 13, 2022 9:39 pm
Reply with quote

Digvijay Singh wrote:
Phrzby Phil wrote:
Here's how:

1. Job1 creates a member of a PROC dataset, say HLQ.INCL.PROC(MEM), with one record: "// SET SYMB=value"

2. Job2's JCL has:
a. a JCLLIB card referencing HLQ.INCL.PROC (unless HLQ.INCL.PROC is one of the system's procedure libraries)
b. a card "// INCLUDE MEMBER=MEM"
c. a later reference like "//DD1 DSN=HLQ.&SYMB"


I was going through this post and i have same requirement could you please explain this bit more.

Thanks


1. Do not tailgate any 15-year old topic.

2. Please go here
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3076
Location: NYC,USA

PostPosted: Tue Jun 14, 2022 3:48 am
Reply with quote

Locked and please start a new post going forward.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Unable to interpret a hex value to De... COBOL Programming 4
No new posts Is this possible via sort (in one pass)? SYNCSORT 4
No new posts REXX/CMS How to place command console... CLIST & REXX 4
No new posts how to eliminate null indicator value... DB2 7
No new posts CA7 count with DATE variable CA Products 0
Search our Forums:

Back to Top