> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of Jorge Arueira Campos
> Sent: Tuesday, June 27, 2006 8:29 AM
> To: IBM-MAIN@BAMA.UA.EDU
> Subject: OMVS SERVICES submit as batch
> 
> 
> Hi all
> 
> Have a possibility the user of USS-OMVS submit job to MVS as 
> batch with
> change in member of SYS1.PARMLIB BPXPRMxx  or in other member 
> ?? In the
> example below of display SDSF the user run a process as STC, 
> but I need
> modify for batch. The system are OS/390 2.10 compatibility mode.
> 
> JOBNAME  StepName ProcStep JobID         Owner    C  Pos DP PGN
> CCBC00       STEP1                 STC02458    CCBC00     IN    5E  16
> 
> 
> 
> 
> Helps are wellcome
> 
> Thanks for all
> 
> Jorge Arueira Campos

I'm still a bit slow as I'm recoverying from whatever it was that made
me sick last week, but I think your question can be rephrased as
follows.

<question>
I have a user who can uses an OMVS/UNIX shell session. This user then
issues an OMVS/UNIX command. This OMVS/UNIX command executes as an STC.
Is there some way for this user to submit a batch job which will do the
same command?
</question>

Unfortunately, the answer, as usual, is "it depends on what the command
does." Some commands, such as "vi" are designed to be interactive with a
terminal user. Others can accept commands from a file or "stdin" and
output their results to a file of "stdout". If the command that the
person is issuing at the keyboard is able to read a file for input and
write a file for output, then he should be able to write some JCL which
can do the equivalent. As an example, suppose that the command something
like "encrypt" (not a real command). This command will "encrypt" a file
and writes the output to stdout. A normal shell user might invoke this
command something like:

encrypt input-file -k encryption-key >encrypted-output-file.

To run this as a batch job, you could create JCL similar to:

//MYJOB JOB 
//STEP1 EXEC PGM=BPXBATCH,
// PARM='encrypt input-file -k encryption-key >encrypted-output-file'
//STDOUT DD PATH='/u/user/stdout',
// PATHOPTS=(OCREAT,OAPPEND,OWRONLY)
//STDERR DD PATH='/u/user/stderr',
// PATHOPTS=(OCREAT,OAPPEND,OWRONLY)
//STDIN DD PATH='/dev/null',
// PATHOPTS=(ORDONLY)
//


The user can create this as a text file in his home subdirectory. There
are two ways to then submit the JCL to run. The first is to have Bill
Schoen's "submit" UNIX shell script. This will  send the contents of the
file to the INTRDR, similar to the TSO SUBMIT command. If you don't have
this script (downloadable somewhere at IBM), then you can do it "the
hard way". You can submit a job via "ftp". The general commands to do so
would be:

ftp 127.0.0.1
myuser
mypass
quote site filetype=jes
put myjob.jcl
quit

This assumes that "myjob.jcl" contains the JCL above. You can also use
ftp to retrieve the job output later. You'll need to read up on this in
the books. I'm not up to trying to explain all of it quite yet <tired,
very tired>.

Of course, the really easy way is to create the JCL in TSO and use
normal TSO/ISPF/SDSF stuff to run the job.

I hope that I understood your question correctly and was able to help
answer it.


--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

This message (including any attachments) contains confidential
information intended for a specific individual and purpose, and its
content is protected by law.  If you are not the intended recipient, you
should delete this message and are hereby notified that any disclosure,
copying, or distribution of this transmission, or taking any action
based on it, is strictly prohibited. 
 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to