Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SAS User defined functions.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1474
Location: Chennai

PostPosted: Mon May 31, 2010 2:53 pm    Post subject: SAS User defined functions.
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: 2429
Location: Netherlands, Amstelveen

PostPosted: Mon May 31, 2010 3:00 pm    Post subject:
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: 1474
Location: Chennai

PostPosted: Mon May 31, 2010 3:07 pm    Post subject:
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: 2429
Location: Netherlands, Amstelveen

PostPosted: Mon May 31, 2010 3:09 pm    Post subject:
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: 1474
Location: Chennai

PostPosted: Mon May 31, 2010 3:20 pm    Post subject:
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: 2429
Location: Netherlands, Amstelveen

PostPosted: Mon May 31, 2010 3:24 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts User Cancels the job PANDU1 DB2 1 Sat Mar 04, 2017 8:21 pm
No new posts SORT - E15 and E35 using same user ex... Abhi Nature DFSORT/ICETOOL 12 Mon Oct 03, 2016 4:33 pm
No new posts Getting list of tables defined under ... kishpra DB2 2 Wed Aug 24, 2016 10:36 am
No new posts User exit in COBOL programs ganasrinivasan PL/I & Assembler 0 Thu Aug 18, 2016 12:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us