set statement in jcl



IBM's Command List programming language & Restructured Extended Executor

set statement in jcl

Postby ericjanssens » Fri Jul 14, 2017 4:23 pm

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
ericjanssens
 
Posts: 2
Joined: Fri Jul 14, 2017 4:15 pm
Has thanked: 0 time
Been thanked: 0 time

Re: set statement in jcl

Postby Robert Sample » Fri Jul 14, 2017 4:26 pm

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.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: set statement in jcl

Postby Pedro » Fri Jul 14, 2017 9:35 pm

You would have to execute your program in this job to resolve the variable and then submit another job that uses that value.
Pedro Vera
User avatar
Pedro
 
Posts: 684
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times

Re: set statement in jcl

Postby prino » Fri Jul 14, 2017 10:46 pm

And what does this ongoing topic have to to with REXX??
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 635
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 28 times

Re: set statement in jcl

Postby Akatsukami » Fri Jul 14, 2017 11:45 pm

It looks like the TS is trying to set JCL variables to Rexx statements.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: set statement in jcl

Postby prino » Sat Jul 15, 2017 12:03 am

Then why not move it to the "Stupid questions" and be done with it?
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 635
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 28 times

Re: set statement in jcl

Postby ericjanssens » Mon Jul 17, 2017 12:42 pm

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.
ericjanssens
 
Posts: 2
Joined: Fri Jul 14, 2017 4:15 pm
Has thanked: 0 time
Been thanked: 0 time

Re: set statement in jcl

Postby prino » Mon Jul 17, 2017 1:10 pm

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!
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 635
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 28 times

Re: set statement in jcl

Postby NicC » Mon Jul 17, 2017 2:16 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post