For readability, in a data step you can explicitly name parameters for the hash object declaration, as per SAS(R) 9.2 Language Reference:
declare hash myhash(dataset: "table", duplicate: "r");
In PROC DS2, using the similar syntax produces an error:
proc ds2;
package foo /overwrite=yes;
declare package hash myhash(hashexp: 4);
endpackage;
run;
quit;
declare package hash h1([key1], [data1 data2 data3], 0, 'testdata', '', '', '', 'multidata');
For DS2 parameter passing is positional only as documented.
I guess you know that already and your post is more of a feature request than an actual question.
Do you know that you can post such feature requests under the following link? https://communities.sas.com/t5/SASware-Ballot-Ideas/idb-p/sas_ideas
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
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.