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 

Calling ISRSUPC from PLI

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
Mart
Beginner


Joined: 05 Feb 2014
Posts: 2
Topics: 1

PostPosted: Tue Feb 11, 2014 6:40 am    Post subject: Calling ISRSUPC from PLI Reply with quote

Hi!
I would like to know, if anyone has tried to call the ISPF Search Utility ISRSUPC in PLI.
Has anyone please suggestions, how i can do this?
My coding so far:
Code:

DCL ISRSUPC ENTRY(CHAR(*));
FETCH ISPLINK, ISPEXEC, TSOLNK;                                       
 CMDAREA = 'ALLOC FILE(NEWDD) DA(''$haha.huhu.DATA.TES1'') SHR REU';
 CALL TSOLNK(257,CMDAREA,LENGTH(CMDAREA),RC,REASON,ABEND);             
 CMDAREA = 'ALLOC FILE(OLDDD) DA(''$haha.huhu.DATA.TES2'') SHR REU';
 CALL TSOLNK(257,CMDAREA,LENGTH(CMDAREA),RC,REASON,ABEND);             
 CMDAREA = 'ALLOC FILE(OUTDD) DA(''$haha.huhu.DATA.TES3'') SHR REU';
 CALL TSOLNK(257,CMDAREA,LENGTH(CMDAREA),RC,REASON,ABEND);           
                           
FETCH ISRSUPC;                                                         
 CALL ISRSUPC('DELTAL,LINECMP');                                       
RELEASE ISRSUPC;

I'm calling this program from a clist. But it stucks on a display prompt and doesn't go further. So i have to cancel it every time.
Thanks a lot
br
Mart
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Tue Feb 11, 2014 11:46 am    Post subject: Reply with quote

Mart,

Try defining ISRSUPC to the compiler as an external entry point with the ASSEMBLER and INTER options.

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Mart
Beginner


Joined: 05 Feb 2014
Posts: 2
Topics: 1

PostPosted: Mon Feb 17, 2014 4:12 am    Post subject: Reply with quote

Thank you very much.
It works fine now.

Mart
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 -> Application Programming 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