在我们的ZOS(大型机)上,我们有一个名为USER.PGM.WEEKLY的库,其中有几个sas程序(成员)位于
我正在尝试使用以下代码从我的PCSAS中检索所有成员的列表
rsubmit;
proc source indd='C009BSA.BSA.BIBHLP.SAS' select *; print;run;
endrsubmit;
signoff;
但是它错误了
ERROR 22-322: Syntax error, expecting one of the following: ;, DIRDD, INDD, MAXIOERROR, NOALIAS,
NODATA, NOMEM, NOPRINT, NOSUMMARY, NOTSORTED, NULL, OUTBLK, OUTDD, PAGE, PRINT,
SEARCH.
ERROR 180-322: Statement is not valid or it is used out of proper order.
我曾尝试在Google周围搜索解决方案,但无法对其进行梳理。
我如何通过运行来一次下载一个成员
filename inpds 'USER.PGM.WEEKLY' shr;
proc download infile =inpds(PPRINT_TO_PDF)
outfile='L:\Work\PPRINT_TO_PDF';
run;
尝试这样的事情。您可能需要使用实际的物理文件,而不是ZOS上的TEMP文件名引擎。
filename dirlist temp;
rsubmit;
filename dirlist temp;
proc source indd='C009BSA.BSA.BIBHLP.SAS' dirdd=dirlist; run;
proc download infile=dirlist outfile=dirlist; run;
endrsubmit;
https://v8doc.sas.com/sashtml/os390/z0217440.htm
如果您只想下载PDS的所有成员,那么PROC DOWNLOAD可以为您完成此任务,而无需提供成员列表。
filename outdir '/where/I/want/to/write/';
rsubmit;
filename indir 'C009BSA.BSA.BIBHLP.SAS';
proc download infile=indir(*) outfile=outdir; run;
endrsubmit;
谢谢了很多帮助:-)您的建议都奏效了