MVSFORUMS.com A Community of and for MVS Professionals
View previous topic :: View next topic
Author
Message
kris_madras Beginner Joined: 07 Apr 2004 Posts: 41 Topics: 30
Posted: Wed Mar 05, 2025 1:37 pm Post subject: Variables in fileaid batch JCL
Hi,
Can we use Variables and assign values in fileaid batch JCL?
Back to top
kris_madras Beginner Joined: 07 Apr 2004 Posts: 41 Topics: 30
Posted: Wed Mar 05, 2025 1:38 pm Post subject:
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
kris_madras Beginner Joined: 07 Apr 2004 Posts: 41 Topics: 30
Posted: Wed Mar 05, 2025 1:40 pm Post subject:
For example
Code: STP=20
$$DD01 COPY MOVE=(1,STP,1),MOVE=(76,10C? ?)
Back to top
kris_madras Beginner Joined: 07 Apr 2004 Posts: 41 Topics: 30
Posted: Wed Mar 05, 2025 1:41 pm Post subject:
For example
Code: STP=20
$$DD01 COPY MOVE=(1,STP,1),MOVE=(76,10C? ?)
Back to top
kris_madras Beginner Joined: 07 Apr 2004 Posts: 41 Topics: 30
Posted: Wed Mar 05, 2025 1:42 pm Post subject:
For example
STP=20
$$DD01 COPY MOVE=(1,STP,1),MOVE=(76,10C? ?)
Back to top
kris_madras Beginner Joined: 07 Apr 2004 Posts: 41 Topics: 30
Posted: Wed Mar 05, 2025 1:42 pm Post subject:
For example
STP=20
$$DD01 COPY MOVE=(1,STP,1),MOVE=(76,10C? ?)
Back to top
kolusu Site Admin Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
Posted: Sun Mar 09, 2025 8:38 am Post subject:
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
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