SARBCH thru REXX

Ask/Clarify the questions on TSO, CLIST & REXX

Moderators: Veera, Moderator Group

Post Reply
mainframes.rajiv
Member
Posts: 13
Joined: Wed Mar 14, 2012 8:18 pm

SARBCH thru REXX

Post by mainframes.rajiv » Sat Mar 31, 2012 2:15 pm

hello All,

is there any facility provided by REXX to search for a job in Caview / SAR

i know with JCL using utility SARBCH. but want to do this with REXX. can some one please help me

I tried with this code
"ALLOC DA(CAVIEW.SYSPRINT) F(SYSPRINT) NEW KEEP,
SPACE(2 2) LRECL(133) RECFM(F B)"
ALLOC DA(CAVIEW.OUTFILE) F(OUTFILE) NEW KEEP,
SPACE(10 10) LRECL(133) RECFM(F B)"
"ALLOC DA(CAVIEW.SYSIN) F(SYSIN) SHR"
"ALLOC DUMMY F(REPORT)"
/*"CALL *(SARBCH)"*/
ADDRESS LINKMVS "SARBCH"
"FREE F(SYSIN,SYSPRINT,OUTFILE,REPORT)"


and also i tried with Address xpview and the rest procedure .. is someone have any running or tested code, which can run with REXX to fetch the jobs in SAR / CAVIEW.

Please help
Thanks
Rajiv

mainframes.rajiv
Member
Posts: 13
Joined: Wed Mar 14, 2012 8:18 pm

Post by mainframes.rajiv » Sat Mar 31, 2012 4:31 pm

checked with this code as well, which i got from CAView docs . its giving me error rc=-3 (command not found)

/*REXX*/
"clear"
Address XPVIEW
XPView.DBase='SYSDSN15.VIEW.S2'
'/LIST ID=jobname'
IF RC/=0 THEN SAY rc
exit
Thanks
Rajiv

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Sat Mar 31, 2012 5:10 pm

should check with the CAView docs and insure all CA libraries are included
in the concatenation of the appropriate DSname for the step you are executing.

what is your jcl, by the way, for invoking your REXX script?

insure, at a minimum, you include the necessary DD statements
(for the different DSnames that are required)
for site libraries to support execution of a REXX Script in Batch.
the description of the JCL necessary is contained in the REXX Application programers guide and in the REXX Reference,
both of which are accessable via the 'button' IBM Manuals, at the top of the page.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others