View previous topic :: View next topic
|
Author |
Message |
ajaimohanc
New User
Joined: 24 Aug 2007 Posts: 5 Location: Pune
|
|
|
|
Hi,
I am trying to code a batch job in which there is a step with a piece of code in REXX executed with IKJEFT01. How can I display the output messages from this REXX code on the user terminal? Basically is there any specific SYSTSPRT class I should use to route the output messages to User terminal?
Thanks in advance!! |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
You just cannot do it.
batch and tso sessions are independent processes |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
The correct term is: Different address spaces, there for Enrico is right. No can do.
O. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
Agree with enrico and ofer: it wont do.
But
if you only have a small message (like JOB OK or JOB FAILED), you can use the TSO SEND command. |
|
Back to top |
|
|
cpuhawg
Active User
Joined: 14 Jun 2006 Posts: 331 Location: Jacksonville, FL
|
|
|
|
You can use the following:
Code: |
//JOBCARD
//OUT1 OUTPUT DEST=NODE.USERID
//STEP010 EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=A,OUTPUT=(*.OUT1)
//SYSTSIN DD *
REXX CODE HERE
/*
|
Code the NODE and USERID of who you want to direct the output to.
Once the output arrives at the person TSO session, they enter :
on the command line. Then they enter:
Code: |
DATASET('HLQ.DATASET.NAME.HERE')
|
The output from the REXX is now in the dataset. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Interesting. Doesn't work at my site, but interesting. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
//OUT1 OUTPUT DEST=NODE.USERID
......
//SYSTSPRT DD SYSOUT=A,OUTPUT=(*.OUT1) |
the solution is very elegant, but it needs the involvement of the system support
from my experience not all the shops have things setup for IDTF
INMINOPT and JES EXIT 13 for IDTF notify for example
... put the receive command in the appropriate IKJTSOxx member for authorization
... add a few more
my impression was that the O/P wanted something automagically popping up on the screen
at the end it might be simpler to just write the output to a dataset
and have the user look out for the end of job notify |
|
Back to top |
|
|
nevilh
Active User
Joined: 01 Sep 2006 Posts: 262
|
|
|
|
jes exit 13 no longer exists in jes2. It disappeared years ago |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
ajaimohanc
New User
Joined: 24 Aug 2007 Posts: 5 Location: Pune
|
|
|
|
All...Thanks a lot for your inputs!!! |
|
Back to top |
|
|
|