Alternatively, submit PUT statements to create a temporary file. Each PUT statement is one line in the temporary input XML file. This code references the same filerefs as the previous code, and produces the same output.
data _null_; file myinput; put "<GetMetadataObjects"; put " <Reposid>$METAREPOSITORY</Reposid>"; put " <Type>Column</Type>"; put " <Objects/>"; put " <Ns>SAS</Ns>"; put " <Flags>1</Flags>"; put " <Options/>"; put "</GetMetadataObjects>"; run; proc metadata in=myinput out=myoutput; run;