I'm trying to understand publishing packages (in my case using a stored process), and I'm looking at this example from the documentation:
In particular, they define two packages. One is the main package:
packageId = 0;
nameValue="type=(test) coverage=(filtering, transports)";
CALL PACKAGE_BEGIN(packageId,"Main results package.",
nameValue, rc);
And one is a secondary package that gets nested in the first later on:
gifpid=0;
CALL PACKAGE_BEGIN(gifpid,"Gif nested package.",'', rc);
Both of these packages have a package ID of 0. How can that work? Isn't the packageID supposed to uniquely identify a package?
Yes, the package ID uniquely identifies the package. I think a zero value for the ID after calling PACKAGE_BEGIN indicates that the cal failed. Check the return code value.
data _null_;
packageId=0;
rc=0;
desc = 'Nightly run.';
nameValue='';
CALL PACKAGE_BEGIN(packageId, desc, nameValue, rc);
putlog packageId= rc=;
run;
Vince DelGobbo
SAS R&D
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.