Can someone tell me how execute a REXX program in a JCL. This REXX uses ISPF and TSO services and when I execute it in a JCL, it returns error when I try to call this services.
Part of the code is like this:
ADDRESS ISPEXEC
"LMINIT DATAID(inpds) DATASET('"dtsetpgm"') ENQ(SHR)"
say 'rc LMINIT: ' RC
ADDRESS ISPEXEC
"LMOPEN DATAID("inpds") OPTION(INPUT)"
say 'rc LMOPEN: ' RC
When I test the ISPF services it returns 1 (The host command environment does not exist.).
The JCL used is
//SUBMIT EXEC PGM=IKJEFT01,DYNAMNBR=20
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//OUTVOL DD DUMMY
//SYSTSIN DD *
EXEC 'ATR0037.REXX.CNTL(ANALISE2)'
/*
Atenciosamente,
João Carvalho
DSI-DSTS-DST-TAG
* - mailto:joao.mato...@caixaseguros.pt <mailto:joao.mato...@caixaseguros.pt>
' - 670701
"A mente é como um pára-quedas, só funciona se estiver aberta"
(Thomas Dewar)
P Antes de imprimir este e-mail pense bem se tem mesmo que o fazer. Há cada vez menos árvores
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to LIST...@VM.MARIST.EDU with the message: INFO TSO-REXX
http://www.sillysot.com/mvs/batchpdf.htm
" Need to run ISPF services or Edit in batch but don't know how to set up the JCL? Let the BATCHPDF edit macro do it for you. It uses the allocations you already have in your TSO session as a model for the JCL so that you don't need to know where all of the ISPF libraries are on your system."
bobh
On Thu, 14 Aug 2008 12:52:36 +0200
Lindy Mayfield <lindy.m...@SSF.SAS.COM> wrote:
> There is a nice edit macro called BATCHPDF from Lionel.
> It will examine your system and create the JCL for you.
>
>
> http://www.sillysot.com/mvs/batchpdf.htm
>
> " Need to run ISPF services or Edit in batch but don't
> know how to set up the JCL? Let the BATCHPDF edit macro
> do it for you. It uses the allocations you already have
> in your TSO session as a model for the JCL so that you
> don't need to know where all of the ISPF libraries are on
> your system."
>
i use the following start command for using isof services in batch:
//STEP01 EXEC PGM=IKJEFT01,
// PARM='ISPSTART CMD(%YOURPGM ...'
you might also need to allocate additional libraries in your jcl, depending on what kind of services you're using.
bye,
andi
> * - mailto:joao.mato...@caixaseguros.pt <mailto:joao.matos.
> carv...@caixaseguros.pt>