IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

To route the REXX output to user terminal in batch


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ajaimohanc

New User


Joined: 24 Aug 2007
Posts: 5
Location: Pune

PostPosted: Wed Feb 06, 2008 1:56 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Feb 06, 2008 2:00 pm
Reply with quote

You just cannot do it.
batch and tso sessions are independent processes
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Feb 06, 2008 2:01 pm
Reply with quote

The correct term is: Different address spaces, there for Enrico is right. No can do.

O.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Wed Feb 06, 2008 6:23 pm
Reply with quote

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
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Wed Feb 06, 2008 7:55 pm
Reply with quote

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 :

Code:

TSO RECEIVE


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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Feb 06, 2008 8:48 pm
Reply with quote

Interesting. Doesn't work at my site, but interesting.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Feb 06, 2008 9:14 pm
Reply with quote

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
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Thu Feb 07, 2008 12:25 am
Reply with quote

jes exit 13 no longer exists in jes2. It disappeared years ago
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Feb 07, 2008 12:52 am
Reply with quote

Quote:
es exit 13 no longer exists in jes2


jes2 ( > 1.6 ) is of the same opinion
but tso/e customization for z/os 1.9 still believes that the exit is there icon_biggrin.gif
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ikj4b480/10.1.2?ACTION=MATCHES&REQUEST=idtf+exit&TYPE=FUZZY&SHELF=IKJ4BK80&DT=20070509043357&CASE=&searchTopic=TOPIC&searchText=TEXT&searchIndex=INDEX&rank=RANK&ScrollTOP=FIRSTHIT#FIRSTHIT
Back to top
View user's profile Send private message
ajaimohanc

New User


Joined: 24 Aug 2007
Posts: 5
Location: Pune

PostPosted: Thu Feb 07, 2008 11:06 am
Reply with quote

All...Thanks a lot for your inputs!!!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
Search our Forums:

Back to Top