MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Variables in fileaid batch JCL

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
kris_madras
Beginner


Joined: 07 Apr 2004
Posts: 41
Topics: 30

PostPosted: Wed Mar 05, 2025 1:37 pm    Post subject: Variables in fileaid batch JCL Reply with quote

Hi,
Can we use Variables and assign values in fileaid batch JCL?
Back to top
View user's profile Send private message
kris_madras
Beginner


Joined: 07 Apr 2004
Posts: 41
Topics: 30

PostPosted: Wed Mar 05, 2025 1:38 pm    Post subject: Reply with quote

For example, in the below statement

Code:
$$DD01 COPY MOVE=(1,20,1),MOVE=(76,10C? ?)

in place of 20, I want to use some variable STP which has value 20.
something like this

Code:
STP=20
$$DD01 COPY MOVE=(1,STP,1),MOVE=(76,10C? ?)
Back to top
View user's profile Send private message
kris_madras
Beginner


Joined: 07 Apr 2004
Posts: 41
Topics: 30

PostPosted: Wed Mar 05, 2025 1:40 pm    Post subject: Reply with quote

For example

Code:
STP=20
$$DD01 COPY MOVE=(1,STP,1),MOVE=(76,10C? ?)
Back to top
View user's profile Send private message
kris_madras
Beginner


Joined: 07 Apr 2004
Posts: 41
Topics: 30

PostPosted: Wed Mar 05, 2025 1:41 pm    Post subject: Reply with quote

For example

Code:
STP=20
$$DD01 COPY MOVE=(1,STP,1),MOVE=(76,10C? ?)
Back to top
View user's profile Send private message
kris_madras
Beginner


Joined: 07 Apr 2004
Posts: 41
Topics: 30

PostPosted: Wed Mar 05, 2025 1:42 pm    Post subject: Reply with quote

For example
STP=20
$$DD01 COPY MOVE=(1,STP,1),MOVE=(76,10C? ?)
Back to top
View user's profile Send private message
kris_madras
Beginner


Joined: 07 Apr 2004
Posts: 41
Topics: 30

PostPosted: Wed Mar 05, 2025 1:42 pm    Post subject: Reply with quote

For example
STP=20
$$DD01 COPY MOVE=(1,STP,1),MOVE=(76,10C? ?)
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12377
Topics: 75
Location: San Jose

PostPosted: Sun Mar 09, 2025 8:38 am    Post subject: Reply with quote

kris_madras wrote:
For example, in the below statement

Code:
$$DD01 COPY MOVE=(1,20,1),MOVE=(76,10C? ?)

in place of 20, I want to use some variable STP which has value 20.
something like this

Code:
STP=20
$$DD01 COPY MOVE=(1,STP,1),MOVE=(76,10C? ?)


kris_madras,

You can use EXPORT of symbols to substitute for values in SYSIN. Check this topic

https://www.mvsforums.com/helpboards/viewtopic.php?p=62787#62787
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group