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: 8797
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: 8797
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: 1042
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: 19244
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: 138
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: 138
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: 2011
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: 3048
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 How to split large record length file... DFSORT/ICETOOL 8
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top