MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

LINK Program

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
coolman
Intermediate


Joined: 03 Jan 2003
Posts: 283
Topics: 27
Location: US

PostPosted: Thu Aug 14, 2003 1:09 am    Post subject: LINK Program Reply with quote

Folks,

This is a REXX code that I have written without any success.


Code:


"ALLOC FI(SYSPRINT) DA(*)"
"ALLOC FI(SYSOUT)   DA(*)" 
"ALLOC FI(REPORT)  DA('USERID.OUTPUT') SHR REUSE"
"ALLOC FI(SYSIN)   DA('USERID.SYSIN') SHR REUSE"
PARM1=X2C(0000)X2C(01)X2C(02)
PARM2='SARBCH'
PARM3=D2C(4,4)
PARM4=D2C(0,4)   
PARM5=D2C(0,4)
PARM6=D2C(0,4)
ADDRESS LINKPGM "IKJEFTSR PARM1 PARM2 PARM3 PARM3 PARM5 PARM6"     
 IF RC<>0 THEN  SAY 'RC='RC 'FROM ADDRESS LINKPGM'


Im getting a Return code of 20.

I have also tried this :

ADDRESS LINKMVS SARBCH instead of IKJEFTSR, but did not help me either.

I want to try the Call, but unfortunately, Im not able to locate the PDS where SARBCH program is present.(SARBCH is a batch reporting program for the jobs in SAR)

Im not able to figure out the problem. Expecting your inputs.

Cheers,
Coolman.
________
buy vaporizer


Last edited by coolman on Sat Feb 05, 2011 1:26 am; edited 1 time in total
Back to top
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Fri Aug 22, 2003 6:15 am    Post subject: Reply with quote

I don't know the problem but think the parms should be without quotes in "ADRESS LINK..." statement.
Back to top
View user's profile Send private message Send e-mail
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Fri Aug 22, 2003 3:44 pm    Post subject: Reply with quote

SARBCH may be loaded into linklist. Issue TSO command ISRDDN, then enter LPA to add Linklist libraries. Look under LINKLIST for something like SYS1.CAI.LOADLIB.

Also, when calling SARBCH, I believe it reqiures the SAR parameter.
Back to top
View user's profile Send private message
coolman
Intermediate


Joined: 03 Jan 2003
Posts: 283
Topics: 27
Location: US

PostPosted: Sat Aug 23, 2003 1:09 am    Post subject: Reply with quote

Bithead,
Thanks for your reply. I apologise for not having updated my earlier post. I had figured out the library "SYS1.CAI.LOADLIB" where SARBCH is present. But the problem is a little different now. This is a modified REXX code which again didnt work.

Code:

/* REXX - SPN */
"ALLOC FI(SYSPRINT) DA(*)"
"ALLOC FI(SYSOUT)   DA(*)" 
"ALLOC FI(REPORT)  DA('USERID.OUTPUT') SHR REUSE"
"ALLOC FI(SYSIN)   DA('USERID.SYSIN') SHR REUSE"
"CALL 'SYS1.CAI.LOADLIB(SARBCH)' "


But this time, it abends out with a S047 (an unauthorised instruction trying to execute a SVC). Again the problem is still open..

Expecting your reply on this..

Cheers,
Coolman.
________
simmering food
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group