Here you go:
data _null_;
length id folder_uri job_uri member_uri uri $ 20
type prop value $ 256;
length name _uri location _location $200;
call missing(name, _uri, location, _location, uri);
call missing(id, type, folder_uri, job_uri, member_uri, prop, value);
rc = metadata_pathobj(' ', '/DIP Data Management/5000 Processes/10 Raw Ingestion', 'Folder', type, _uri);
do n = 1 by 1 while(metadata_getnasn(_uri, 'Members', n, member_uri) > 0);
put n= _uri= member_uri=;
end;
run;
The output I get shows that it's nearly there - but not quite. I know the number of members, but the uri returned from getnasn is the folder's one.
n=1 _uri=A5IKCEC7.AA00008A member_uri=OMSOBJ:Job\A5IKCEC7.
n=2 _uri=A5IKCEC7.AA00008A member_uri=OMSOBJ:Job\A5IKCEC7.
n=3 _uri=A5IKCEC7.AA00008A member_uri=OMSOBJ:Job\A5IKCEC7.
n=4 _uri=A5IKCEC7.AA00008A member_uri=OMSOBJ:Job\A5IKCEC7.
n=5 _uri=A5IKCEC7.AA00008A member_uri=OMSOBJ:Job\A5IKCEC7.
n=6 _uri=A5IKCEC7.AA00008A member_uri=OMSOBJ:Job\A5IKCEC7.
n=7 _uri=A5IKCEC7.AA00008A member_uri=OMSOBJ:Job\A5IKCEC7.
n=8 _uri=A5IKCEC7.AA00008A member_uri=OMSOBJ:Job\A5IKCEC7.
n=9 _uri=A5IKCEC7.AA00008A member_uri=OMSOBJ:Job\A5IKCEC7.
n=10 _uri=A5IKCEC7.AA00008A member_uri=OMSOBJ:Job\A5IKCEC7.
n=11 _uri=A5IKCEC7.AA00008A member_uri=OMSOBJ:Job\A5IKCEC7.
n=12 _uri=A5IKCEC7.AA00008A member_uri=OMSOBJ:Job\A5IKCEC7.
n=13 _uri=A5IKCEC7.AA00008A member_uri=OMSOBJ:Job\A5IKCEC7.
n=14 _uri=A5IKCEC7.AA00008A member_uri=OMSOBJ:Job\A5IKCEC7.
n=15 _uri=A5IKCEC7.AA00008A member_uri=OMSOBJ:Job\A5IKCEC7.
etc...
... View more