Page 1 of 1

set statement in jcl

PostPosted: Fri Jul 14, 2017 4:23 pm
by ericjanssens
hi
i would like these set statement:

// SET TRBENVUC=RBT1  
// SET UC = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'  
// SET LC = 'abcdefghijklmnopqrstuvwxyz0123456789'  
// SET TRBENVLC=TRANSLATE(&TRBENVUC.,&LC.,&UC.)          
 

that doesn't work.
how can I do this?

eric

Coded

Re: set statement in jcl

PostPosted: Fri Jul 14, 2017 4:26 pm
by Robert Sample
how can I do this?
Write a program in the language of your choice.

JCL is not an appropriate way for what you tried to do, as you found out.

Re: set statement in jcl

PostPosted: Fri Jul 14, 2017 9:35 pm
by Pedro
You would have to execute your program in this job to resolve the variable and then submit another job that uses that value.

Re: set statement in jcl

PostPosted: Fri Jul 14, 2017 10:46 pm
by prino
And what does this ongoing topic have to to with REXX??

Re: set statement in jcl

PostPosted: Fri Jul 14, 2017 11:45 pm
by Akatsukami
It looks like the TS is trying to set JCL variables to Rexx statements.

Re: set statement in jcl

PostPosted: Sat Jul 15, 2017 12:03 am
by prino
Then why not move it to the "Stupid questions" and be done with it?

Re: set statement in jcl

PostPosted: Mon Jul 17, 2017 12:42 pm
by ericjanssens
prino wrote:Then why not move it to the "Stupid questions" and be done with it?


because you don't understand, it is not a stupid question. Jes2 runs Clist statements, but apparently not this Rexx one.

Re: set statement in jcl

PostPosted: Mon Jul 17, 2017 1:10 pm
by prino
ericjanssens wrote:
prino wrote:Then why not move it to the "Stupid questions" and be done with it?


because you don't understand, it is not a stupid question. Jes2 runs Clist statements, but apparently not this Rexx one.

JES2 running CLIST statements?

Be careful with the nonsense you spout, someone may sue you for damages for jaw-dislocation due to excessive laughter!

Re: set statement in jcl

PostPosted: Mon Jul 17, 2017 2:16 pm
by NicC
SET statements, in the format that you specified, are JCL statements. SET is also a CList statement. That is different from the JCL SET statement. You cannot mix the two - they belong to two different languages. Rexx doesnot have a SET statement.

I suggest you read about the JCL SET statement and then the clist SET statement.