BookmarkSubscribeRSS Feed
Genesis1701d1
Calcite | Level 5

I'm trying to understand publishing packages (in my case using a stored process), and I'm looking at this example from the documentation:

https://documentation.sas.com/?docsetId=publishdg&docsetTarget=n1xvf6fybwq7pvn1j8qt77ech1xz.htm&docs...

 

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?

1 REPLY 1
Vince_SAS
Rhodochrosite | Level 12

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.

 

https://go.documentation.sas.com/?docsetId=publishdg&docsetTarget=p1iqk0mjufz28sn10hdjzp6pv5js.htm&d...

 

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

 

sas-innovate-2024.png

📢

ANNOUNCEMENT

The early bird rate has been extended! Register by March 18 for just $695 - $100 off the standard rate.

 

Check out the agenda and get ready for a jam-packed event featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events. 

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 309 views
  • 0 likes
  • 2 in conversation