IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How the statement "CALL *(IEBCOPY)" works?


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Wed May 19, 2010 5:34 pm
Reply with quote

Hi,

I am trying to invoke SAS from REXX,

Usually while invoking utilities like IEBGENER, IEBCOPY, ICETOOL in REXX we allocate the required DD statements like SYSPRINT, SYSIN, SORTIN etc.. then issue the command
Code:
"CALL *(IEBCOPY)" or "CALL *(IEBGENER)"


Similary when I tried
Code:
"CALL *(SAS)"


I got the error icon_eek.gif ,

Code:
IKJ56005I MEMBER SAS NOT FOUND WITHIN THE STANDARD SEARCH ORDER


Could u please let me know where to find this "STANDARD SEARCH ORDER"

Is it some library?

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed May 19, 2010 5:38 pm
Reply with quote

For some reason - most places I have worked SAS is always accessed via a STEPLIB.

Look at the SAS batch JCL you submit and then include the STEPLIB datatsets into your REXX JCL or front end ISPF allocations.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Wed May 19, 2010 5:46 pm
Reply with quote

Thanks for responding.

A sample batch JCL which works at our shop. It has no steplib on it.
Code:
//PS010    EXEC SASMVS                             
//WORK     DD  UNIT=SYSALLDA,SPACE=(CYL,(5,1),RLSE)
//SYSIN    DD  *                                   
  data something;                                 
  put 'Yey! SAS works';                           
  run;                                             
/* 


"CALL *(SASMVS)" had the same error,

Code:
IKJ56005I MEMBER SASMVS NOT FOUND WITHIN THE STANDARD SEARCH ORDER


Regards,
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed May 19, 2010 5:50 pm
Reply with quote

That's a PROC that you are showing here, I believe the STEPLIB will be visible inside the expanded JCL.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Wed May 19, 2010 6:02 pm
Reply with quote

The actual JCL did not have any STEPLIB on it, so i made my previous post which was incorrect.

the JCL log showed the library,
Code:
IEFC001I PROCEDURE SASMVS WAS EXPANDED USING SYSTEM LIBRARY S****.PROCLIB


got the library, thanks again.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Wed May 19, 2010 6:21 pm
Reply with quote

I definitely DO NOT recommend invoking SAS in this way -- you're not setting up the SAS environment correctly. You probably won't get too far with SAS code if you do this.

SAS provides a CLIST library as part of their installation process, and that CLIST library contains code to invoke SAS from TSO. The SAS 9.1 and 9.2 libraries have procedure CLSTW0 to invoke SAS and set up the appropriate environment first. If you really want to invoke SAS from TSO, talk to your site support group about how to access CLSTW0 -- they may move the SAS library into your site's standard TSO library concatenation, or just move the member to a library. For testing, you could issue 'exec sas.hlq.CLIST(CLISTW0)' from ISPF option 6 or a TSO READY prompt.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Wed May 19, 2010 7:57 pm
Reply with quote

I use CLIST(CLISTW0) to invoke SAS interactively,

For invoking SAS from user CLISTs, I used a similar technique as that of invoking IEBGENER or IEBCOPY and it worked fine (for past few days). I was having problem with REXX though.

Maybe I have not written a complex SAS code which requires all the CONFIG and other allocations & so it did not fail icon_biggrin.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts PuTTY - "User is not a surrogate... IBM Tools 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Call program, directly from panel CLIST & REXX 9
No new posts Newbie Stuck on "Duplicate Datas... TSO/ISPF 5
No new posts Batch call online program, EXCI task ... CICS 3
Search our Forums:

Back to Top