Customize the preprocglobal.sas Program

SAS IT Resource Management Adapter for SAP jobs use global macro variables that are initialized in the preprocglobal.sas program. This program serves as the preprocessing step in the first initialization job. The custom SAS code preprocglobal.sas needs to be customized so as to point to the appropriate libref of the SAP server.
The preprocglobal.sas program is in the Install directory. The file is located at the place where you specified the Install directory on the SAS Deployment Wizard during Installation. The default location of the custom code is in Windows: C:\Program Files\SASHome\SASITResourceManagementAdapterforSAPData\3.3\CustomSASCode.
Make appropriate changes in the following section of the program to suit your environment.
*Select
wanted sap librefs that you want extract statistical data from. 
  List must be entered as quoted company codes
  separated by commas;
% let wanted_sap_libref = 'SIO';
Use the preceding section of the program to assign values to the macro variable %let wanted_sap_libref in order to restrict the initialization job from specific SAP systems. Enter libref values of the SAP systems, from which you want to extract the data.
 
options mstored mrecall;
 
filename macro '!ADPTITMINSTALL';
* This macro filename setting is more portable, but
* can only work from the right context ;
options sasautos = (macro sasautos );
 
* Select wanted sap librefs that you want extractstatistical data from. 
  List must be entered as quoted company codes
  separated by commas ;
 
%let wanted_sap_libref = 'SIO';
 
/*
 * End of preprocglobal.sas
 */
While running the preprocglobal.sas program in an UNIX environment, a small change has to be done in the program. As UNIX is case sensitive, you need to replace filename macro '!ADPTITMINSTALL'; with filename macro '!adptitminstall';
In z/OS, the preprocglobal.sas program should resemble the program in the following figure.
 
options mstored mrecall;
 
filename macro  %sysget
(ADPTITMINSTALL1)%sysget(ADPTITMINSTALL2)%sysget(ADPTITMINSTALL3) ;
* This macro filename setting is more portable, but
* can only work from the right context ;
options sasautos = (macro sasautos );
 
* Select wanted sap librefs that you want extract statistical data from. 
  List must be entered as quoted company codes
  separated by commas ;
 
%let wanted_sap_libref = 'SIO';
 
/*
 * End of preprocglobal.sas
 */
 
Note: The variables that you find in the filename statement of the above program are those that you defined in the config file of the z/OS environment.