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
 

 

How can I run JES2 command in rexx and return the results

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
View previous topic :: :: View next topic  
Author Message
as4578

New User


Joined: 24 Jun 2010
Posts: 12
Location: China

PostPosted: Thu Jun 24, 2010 1:58 pm    Post subject: How can I run JES2 command in rexx and return the results
Reply with quote

I want to run some JES2 commands and give the results back to REXX.

As I investigated in this forum,I try to call a external service with
ADDRESS ISPEXEC " SELECT PGM(ISFISP) PARM('LOG')", but it jumps to the SDSF panel and I can't get what I want.

I expect to save the results in a var (like using CALL OUTTRAP "TRAP." to save the results in TRAP).

For example.
In SDSF => LOG
/$D Job 'jobname',STATUS,CC=CODE

In REXX icon_question.gif
what can I do to get the results?

Could anyone help me?

Thank you.

----------------------------------------
By the way, is there any command to hold the REXX for a while?

Just like WAIT, SLEEP,etc..
Back to top
View user's profile Send private message

Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1226
Location: Israel

PostPosted: Thu Jun 24, 2010 5:50 pm    Post subject:
Reply with quote

If you have z/OS V1R9 then you could try using the SDSF Interface (see this IBM Redbooks)
Back to top
View user's profile Send private message
as4578

New User


Joined: 24 Jun 2010
Posts: 12
Location: China

PostPosted: Fri Jun 25, 2010 6:24 am    Post subject:
Reply with quote

Marso,

Thanks very much.

Is there any command to hold the REXX for a while?

Just like WAIT, SLEEP,etc..
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jun 25, 2010 6:47 am    Post subject:
Reply with quote

Hello,

Most organizations will cancel tasks that do this. . .

If you need to have this run periodically, run it in batch via the system schedule.

There is no good reason to have this "permanently" tie up system resources. . .
Back to top
View user's profile Send private message
as4578

New User


Joined: 24 Jun 2010
Posts: 12
Location: China

PostPosted: Fri Jun 25, 2010 7:41 am    Post subject:
Reply with quote

It seems reasonable.

Thanks all.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jun 25, 2010 8:42 am    Post subject: Reply to: How can I run JES2 command in rexx and return the
Reply with quote

You're welcome - good luck icon_smile.gif

d
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 -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 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 TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Customizing the ISPF HILITE Command Pedro TSO/ISPF 3 Fri Mar 03, 2017 11:49 pm
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


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