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

SAS User defined functions.


IBM Mainframe Forums -> All Other Mainframe Topics
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: Mon May 31, 2010 2:53 pm
Reply with quote

Hi,

There is a SAS program at our shop which has many user defined functins coded on them like,
Code:
CALL funcchk('STR',"&DDN");


And this program is executed in batch.

Could you please let me know where I can possibly find the definition of this user defined fucntion "funcchk".
I searched on the PDS with DD name SASAUTOS, but cant find it there and the JCL did not have SASUSER DD name too.

The job is coded with NOSOURCE option, so cannot make out anything from the log as well.

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

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon May 31, 2010 3:00 pm
Reply with quote

try :

OPTIONS MPRINT SOURCE SOURCE2;

do you have a cmplib= parameter on your options statement, if yes
then that sas dataset contains user defined functions.

see also : PROC FCMP
Back to top
View user's profile Send private message
vasanthz

Global Moderator


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

PostPosted: Mon May 31, 2010 3:07 pm
Reply with quote

Hi,

Thanks for your reply, but its very hard to run a user version of this job with modified options, Because I truly do not know if some of the functions update production DB.

I thought all user-defined functions existed in 1 common library. is it?

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

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon May 31, 2010 3:09 pm
Reply with quote

do you have a cmplib= parameter on your options statement, if yes
then that sas dataset contains user defined functions.

see also : PROC FCMP
Back to top
View user's profile Send private message
vasanthz

Global Moderator


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

PostPosted: Mon May 31, 2010 3:20 pm
Reply with quote

Hi Peter,

Thanks again, I did have a look at PROC FCMP before posting, but it was said that by using PROC FCMP the definitions were saved under SASUSER library. So I mentioned,
Quote:
JCL did not have SASUSER DD name too.


Anyway I would look into the program more and try if I can find the cmplib thing which u suggested.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon May 31, 2010 3:24 pm
Reply with quote

well for instance options cmplib=sasuser.cmpl; means NOT a dd name, but
the name of a SAS dataset, try to find something like that in your joblog.
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts PuTTY - "User is not a surrogate... IBM Tools 5
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts user exit in IBM Infosphere Optim DB2 8
No new posts Running a Job with the Default User ID JCL & VSAM 2
No new posts the system or user abend SF0F R=NULL COBOL Programming 0
Search our Forums:

Back to Top