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
 

 

Invoking QW from REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
pshongal

New User


Joined: 14 Jun 2012
Posts: 70
Location: India

PostPosted: Tue Sep 09, 2014 10:24 am    Post subject: Invoking QW from REXX
Reply with quote

Hi All,

I have a small rexx utility to get sql error code as below.
If the program abend output shows sql code as 80N, my tool will get proper sqlcode as -805. This is just to help freshers in the team.

Now, I would like to add feature such that, it will take them to Quick reference also. So when they call my tool, it should convert it to proper code (which it is doing now) and then take them directly to QW as if executing "QW -805". How can I do it?

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

Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1228
Location: Israel

PostPosted: Tue Sep 09, 2014 7:21 pm    Post subject:
Reply with quote

It would be easier (and wiser) to teach "freshers in the team" to do:
Code:
01  WS-SQLCODE                    PIC -999.

MOVE SQLCODE TO WS-SQLCODE
DISPLAY '    SQLCODE: ' WS-SQLCODE


If you really want, you can try:
Code:
Address ISPEXEC "SELECT CMD(%QW PRM('-805'))"
Back to top
View user's profile Send private message
pshongal

New User


Joined: 14 Jun 2012
Posts: 70
Location: India

PostPosted: Wed Sep 10, 2014 11:17 am    Post subject:
Reply with quote

Thanks a lot Marso.
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
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 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 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