View previous topic :: View next topic
|
Author |
Message |
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
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 |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
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 |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
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 |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
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 |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
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 |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
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 |
|
|
|