Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 10231
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: 1226
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: 4648
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: 10231
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: 258

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: 10231
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 MIPS/CPU consumption reduction in Batch vishwakotin DFSORT/ICETOOL 4 Sat Mar 18, 2017 5:46 pm
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us