I'm still completely at a loss as to why a JCL-less STC makes sense (a contradiction in terms to begin with). Which System Symbol are you using? I have seen &SYSNAME and &SYSCLONE used that way (to suffix a common prefix). Beginning with a period it must be a locally defined symbol in IEASYMxx. Based on stuff I have seen in IEASYMxx in the past I am going to guess this an octet of an IP address. If not, what are you trying to do that this makes sense?
One approach for uniquely named STC's is to use a common PROC, then use the JOBNAME parm of the START command to "rename" the task.
S member,JOBNAME=name
This would start MEMBER from a valid PROCLIB and name it NAME when it runs. Since System Symbols can be used in commands, you could do something like this to get them all started
ROUTE *ALL,START member,JOBNAME=XXX&yoursym
To deal with the leading "." you could use the Substring syntax of &symbols (2:3 starts in position 2 for 3 bytes)
ROUTE *ALL,START member,JOBNAME=XXX&yoursym(2:3)
That all being said, it kind of sounds like you are trying to get around working with the people that control the PROCLIBS and can issue START commands.
Rob
-----Original Message-----
From: Jeff Beech-Garwood <
jeff.bee...@USBANK.COM>
To: TSO-REXX <
TSO-...@VM.MARIST.EDU>
Sent: Mon, May 19, 2014 1:19 pm
Subject: Re: Starting a TASK from REXX vs Submitting a JOB
Hi John,
That's pretty much exactly what I was doing. I hit the problem that the
CL I built in the Stem could be submitted as a Job but not started as a
tarted Task.
Thanks.
Jeff Beech-Garwood
ystems Programmer
ainframe Network Support
S Bank, EP-MN-02NS
51-962-3809
unction. You can then strip the leading period (full stop) and use that
s
he member name in the JCL. Or you can even "override" the system symbol
n
he JCL, by including a // SET SYSVAR=value in your submitted JCL. Eg.
MEMBER=SUBSTR(MVSVAR("SYMDEF",'SYSVAR'),2) /* GET VALUE OF SYSVAR SYSTEM
YMBOL AND REMOVE LEADING .
CL.1="//MYJOB JOB OTHER,STUFF,CLASS=A,MSGCLASS=H"
CL.2="// SET SYSVAR="MEMBER
CL.3="//PROC EXEC PROC=SYSPROC"
CL.4="//"
CL.0=4
EXECIO "JCL.0" DISKW INTRDR (STEM JCL. FINIS"
In the above, I _assume_ that SYSVAR is the name of your system symbol. I
et its value with the MVSVAR's SYMDEF function. I strip of the leading
ull stop. I then create a JCL symbol with the same name as the system
ymbol using the SET, but give it the proper value.
On Mon, May 19, 2014 at 1:34 PM, Jeff Beech-Garwood <
eff.beec...@usbank.com> wrote:
> Don, Rob & Itschak,
Thankyou kindly for your responses.
Rob asked what I was trying to do. Initially I was trying to eliminate
CL
entirely and use just REXX (excellent document by Hobart Spitz entitled
'Converting MVS/JCL to REXX/TSO') but I hit the constraint that I
ouldn't
allocate a STEPLIB.
So, I then thought I'd use REXX to build some JCL and submit it to the
internal reader. Used BPXWDYN and EXECIO (Thanks John McKown) and it
worked - but I could only submit as a job not start as a started task.
Why was I trying to do this? Well we have an MVS System Symbol that I
wanted to use as part of a member name. Unfortunately the value of that
symbol begins with a full-stop (period) thus I couldn't use it as a
ember
name (It's normally used as the suffix to a dataset). So, I thought of
y
favourite language and this is where I ended up.
I'm going to stop now as the constraints mentioned by Don, Rob & Itschak
are more of a road-block than I want to have to fight with. Oh, and we
have RACF set to prevent batch jobs or started tasks from issuing a
TART
command.
Thankyou again gentlemen.
Jeff Beech-Garwood
Systems Programmer
Mainframe Network Support
US Bank, EP-MN-02NS
651-962-3809
From: Robert Zenuk <
robz...@AOL.COM>
To:
TSO-...@VM.MARIST.EDU,
Date: 05/19/2014 12:44 PM
Subject: Re: [TSO-REXX] Starting a TASK from REXX vs Submitting a
JOB
Sent by: TSO REXX Discussion List <
TSO-...@VM.MARIST.EDU>
Started tasks (STC's) are run from the IEFPDSI DD in the MSTJCLxx and/or
the PROC00 concatenation in the JES2 PROC (JCL or PROCLIB statements)
using the MVS START command for the STC member name. If the STC PROC
ou
intend to run is not in this concatenation it will not be a started
ask.
You can not submit JCL from the Internal Reader to START a STC unless
he
JCL is copying/overlaying the desired member then issuing a START
ommand
for the desired member (which would be jumping through flaming hoops aka
Rube Goldberg approach and probably a security violation).
STC's receive some special treatment in the system. Therefore the
datasets eligible to run STC's from usually have a little higher
ecurity
access (UACC READ ONLY). STC's usually do not change frequently. So, a
dynamically changing PROC as a result of every time a person runs a REXX
EXEC seems odd.
What is it you are actually trying to accomplish?
Rob
-----Original Message-----
From: Jeff Beech-Garwood <
jeff.bee...@USBANK.COM>
To: TSO-REXX <
TSO-...@VM.MARIST.EDU>
Sent: Mon, May 19, 2014 9:50 am
Subject: Starting a TASK from REXX vs Submitting a JOB
I'm using REXX to edit some JCL inside a Stem and then EXECIO the Stem
o
he Internal Reader.
It works fine, but it's treating the JCL as a JOB (using Submit) rather
han a Started Task (using START).
How can I issue a START against the JCL in my Stem, vs a Submit?
(I have tried ISFEXEC but the JCL it submits is what it finds in the
ormal PROCLIB, not the JCL in my Stem)
Thanks kindly,
Jeff Beech-Garwood
ystems Programmer
ainframe Network Support
S Bank, EP-MN-02NS
51-962-3809
.S. BANCORP made the following annotations
--------------------------------------------------------------------
lectronic Privacy Notice. This e-mail, and any attachments, contains
nformation that is, or may be, covered by electronic communications
privacy
aws, and is also confidential and proprietary in nature. If you are not
the
ntended recipient, please be advised that you are legally prohibited
rom
etaining, using, copying, distributing, or otherwise disclosing this
nformation in any manner. Instead, please reply to the sender that you
have
eceived this communication in error, and then immediately delete it.
here is nothing more pleasant than traveling and meeting new people!
enghis Khan
Maranatha! <><
ohn McKown
----------------------------------------------------------------------