Guest User

Untitled

a guest
Mar 5th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. /***************************************************/
  2. /*** Sample program to pull any TextStore object ***/
  3. /*** from metadata that contains setinit info. ***/
  4. /*** ***/
  5. /*** IMPORTANT: Before running this code, be ***/
  6. /*** sure you modify the initial OPTIONS ***/
  7. /*** statement to provide values that are ***/
  8. /*** appropriate for your metadata server ***/
  9. /*** IMPORTANT: edit the FILENAME statement to ***/
  10. /*** reference a valid path where your ***/
  11. /*** USERID has rights to create a file. ***/
  12. /*** Example Unix path: "/home/sasinstall/METASETINIT.XML"; ***/
  13. /*** ***/
  14. /*** RESULT: This code creates a METASETINIT.XML ***/
  15. /*** file with *all* the SID files/setinits ***/
  16. /*** currently in Metadata. ***/
  17. /***************************************************/
  18.  
  19. options metaserver="your.metadata.server.host" /*change to your metadata server name*/
  20. metaport=8561 /* if needed, change port */
  21. metauser="sasadm@saspw" /* if needed, change user */
  22. metapass="sasadmpw" /* change password */
  23. metarepository="Foundation"
  24. metaprotocol=BRIDGE;
  25.  
  26. filename setinit "c:\metasetinit.xml"; /* if needed, change drive and add folder(s) */
  27. /* Your USERID must have rights to create files in folder specified */
  28. proc metadata in=
  29. "<GetMetadataObjects>
  30. <Reposid>$METAREPOSITORY</Reposid>
  31. <Type>TextStore</Type>
  32. <NS>SAS</NS>
  33. <Flags>2441</Flags>
  34. <Options>
  35. <XMLSelect search=""*[@Name ? 'setinit']""/>
  36. </Options>
  37. </GetMetadataObjects>" out=setinit;
  38. run;
Add Comment
Please, Sign In to add comment