drispw
2005-02-28 13:41:51 UTC
I have been puzzling over an issue that I can't seem to resolve. I
have what looks to me to be identical file tailoring processes in clist
and REXX. The clist version works in ISPF, but fails when I run it in
batch TSO (IKJEFT01). The REXX version works in both situations.
Below is an example of the two routines.
CLIST:
ISPEXEC VGET (WORKMEM)
SET OUTSKPDS = &STR('TEST.SAMPLE.SKELS')
ALLOC DD(OUTSKEL) DS(&OUTSKPDS) SHR
ISPEXEC FTOPEN
ISPEXEC FTINCL SAMPSKEL
ISPEXEC FTINCL SAMPSKL2
ISPEXEC FTINCL SAMPSKL3
ISPEXEC FTCLOSE LIBRARY(OUTSKEL) NAME(&WORKMEM)
In batch TSO, the FTCLOSE receives an error that states that OUTSKEL is
not a PDS
REXX:
'VGET (WORKMEM)'
OUTSKPDS = TEST.SAMPLE.SKELS
ADDRESS TSO "ALLOC DD(OUTSKEL) DS('"OUTSKPDS"') SHR"
'FTOPEN'
'FTINCL SAMPSKEL'
'FTCLOSE LIBRARY(OUTSKEL) NAME('WORKMEM')'
This works in both foreground and background
HELP!!
have what looks to me to be identical file tailoring processes in clist
and REXX. The clist version works in ISPF, but fails when I run it in
batch TSO (IKJEFT01). The REXX version works in both situations.
Below is an example of the two routines.
CLIST:
ISPEXEC VGET (WORKMEM)
SET OUTSKPDS = &STR('TEST.SAMPLE.SKELS')
ALLOC DD(OUTSKEL) DS(&OUTSKPDS) SHR
ISPEXEC FTOPEN
ISPEXEC FTINCL SAMPSKEL
ISPEXEC FTINCL SAMPSKL2
ISPEXEC FTINCL SAMPSKL3
ISPEXEC FTCLOSE LIBRARY(OUTSKEL) NAME(&WORKMEM)
In batch TSO, the FTCLOSE receives an error that states that OUTSKEL is
not a PDS
REXX:
'VGET (WORKMEM)'
OUTSKPDS = TEST.SAMPLE.SKELS
ADDRESS TSO "ALLOC DD(OUTSKEL) DS('"OUTSKPDS"') SHR"
'FTOPEN'
'FTINCL SAMPSKEL'
'FTCLOSE LIBRARY(OUTSKEL) NAME('WORKMEM')'
This works in both foreground and background
HELP!!