Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
To route the REXX output to user terminal in batch

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: To route the REXX output to user terminal in batch
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10374
Location: italy

PostPosted: Wed Feb 06, 2008 2:00 pm    Post subject: Reply to: To route the REXX output to user terminal in batch
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: 2360
Location: Israel

PostPosted: Wed Feb 06, 2008 2:01 pm    Post subject:
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: 1250
Location: Israel

PostPosted: Wed Feb 06, 2008 6:23 pm    Post subject:
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    Post subject:
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

Moderator Team Head


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

PostPosted: Wed Feb 06, 2008 8:48 pm    Post subject: Reply to: To route the REXX output to user terminal in batch
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10374
Location: italy

PostPosted: Wed Feb 06, 2008 9:14 pm    Post subject: Reply to: To route the REXX output to user terminal in batch
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: 260

PostPosted: Thu Feb 07, 2008 12:25 am    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10374
Location: italy

PostPosted: Thu Feb 07, 2008 12:52 am    Post subject: Reply to: To route the REXX output to user terminal in batch
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Looping REXX - unable to interrupt RAVISANKAR07 CLIST & REXX 3 Wed Dec 06, 2017 1:08 pm
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts CA Intertest Batch 555shanth CA Products 0 Tue Nov 28, 2017 11:10 am
This topic is locked: you cannot edit posts or make replies. Rexx to Grab ISMF Information. upendrasri All Other Mainframe Topics 16 Sun Nov 26, 2017 12:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us