ODS Packages

Click here to load reader

download ODS Packages

of 77

  • date post

    21-Jun-2015
  • Category

    Documents

  • view

    729
  • download

    2

Embed Size (px)

description

ODS Packages

Transcript of ODS Packages

  • 1. ODS Packages: Putting Some ZipIn Your ODS Output.Eric GebhartPrinciple Systems Developer

2. Packages 3. HTML RTFPackages PDF Images Data Sets Text files 4. Packages .SPK .ZIP 5. proc gplotdata=sashelp.class;plot height*weight;by name;run; quit; 6. ods html;proc gplotdata=sashelp.class;plot height*weight;by name;run; quit;ods html close; 7. ods html;proc gplotdata=sashelp.class;plot height*weight;by name;run; quit;ods html close; 8. ods html;proc gplotdata=sashelp.class;plot height*weight;by name;run; quit;ods html close; 9. ods Package Open; Packingods htmlproc gplot;Slipdata=sashelp.class;plot height*weight;by name;run; quit;ods html close; 10. sashtml.htmPackinggplot.gifgplot1.gifods Package Open; gplot2.gifSlipgplot3.gifods html Package ;gplot4.gifgplot5.gifgplot6.gifproc gplotgplot7.gifdata=sashelp.class; gplot8.gif gplot9.gifplot height*weight; gplot10.gifby name;gplot11.gifgplot12.gifrun; quit;gplot13.gifgplot14.gifods html close; gplot15.gifgplot16.gifgplot17.gifgplot18.gif 11. Packingsashtml.htmgplot.gifgplot1.gifgplot2.gifods Package PublishSlipgplot3.gifgplot4.gifgplot5.gifgplot6.gifgplot7.gifgplot8.gifgplot9.gifgplot10.gifgplot11.gifgplot12.gifgplot13.gifgplot14.gifgplot15.gifgplot16.gifgplot17.gifgplot18.gif 12. Packingsashtml.htmgplot.gifgplot1.gifgplot2.gifods Package PublishSlipgplot3.gifgplot4.gif Archivegplot5.gifgplot6.gif Properties(gplot7.gifarchive_name = test.zipgplot8.gifgplot9.gifarchive_path = ./gplot10.gif);gplot11.gifgplot12.gifgplot13.gifgplot14.gifgplot15.gifgplot16.gifgplot17.gifgplot18.gif 13. Packingsashtml.htmgplot.gifgplot1.gifgplot2.gifods Package PublishSlipgplot3.gifgplot4.gif Archivegplot5.gifgplot6.gif Properties(gplot7.gifarchive_name = test.zipgplot8.gifgplot9.gifarchive_path = ./gplot10.gif);gplot11.gifgplot12.gifgplot13.gifgplot14.gifgplot15.gifgplot16.gifgplot17.gifgplot18.gif 14. sashtml.htmPackinggplot.gifgplot1.gifgplot2.gifods PackageSlipgplot3.gifgplot4.gifgplot5.gifgplot6.gifgplot7.gifgplot8.gifgplot9.gifgplot10.gifgplot11.gifgplot12.gifgplot13.gifgplot14.gifgplot15.gifgplot16.gifgplot17.gifgplot18.gif 15. ods Package Close 16. ods Package Close Clear; 17. PackagePublishTransports 18. Archive Package EmailPublish SubscribersTransports WebDav Queue 19. Package PublishProperties 20. Package PublishProperties 21. Archive 22. ods Package PublishArchiveProperties ( Archive_name = test.spkArchiveArchive_path = ./); 23. Email 24. ods Package PublishEmailProperties ( Archive_name = test.spkEmailArchive_path = ./)Addresses ( Eric@EricGebhart.com Kevin.Smith@SAS.com); 25. Subscribers 26. ods Package PublishSubscribersSubscribers Properties (Channel_store = LDAP: ...) 27. WebDav 28. ods Package Publish WebDav Properties (WebDavCollection_URL = http://... ); 29. Queue 30. ods Package PublishQueueQueues (Queue"MQSERIES://PCONE:LOCAL" "MSMQ://JSMITH:TRANSQ"); 31. SAS Integration http://support.sas.com/Technologiesrnd/itech/ 32. SAS Integration http://support.sas.com/Technologiesrnd/itech/Developers doc9/dev_guide/Guide 33. SAS Integration http://support.sas.com/Technologiesrnd/itech/Developers doc9/dev_guide/Guide Publishingapp/pkgintf/ Framework 34. SAS IntegrationTechnologies 35. ArchiveSAS Integration EmailTechnologies Subscribers WebDav Queue 36. ArchiveSAS Integration EmailTechnologies Subscribers WebDav Queue 37. Ods Package Open; ArchiveSAS Integration EmailTechnologies Subscribers WebDav Queue 38. Ods Package Open nopf ; ArchiveSAS Integration EmailTechnologies Subscribers WebDav Queue 39. Unzip Proc DocumentLooking Inside SAS PackageManager 40. Archive: example1.ziptesting: PackageMetaDataOKtesting: gplot18.gifOKtesting: gplot17.gifOKtesting: gplot16.gifOKtesting: gplot15.gifOKtesting: gplot14.gifOKtesting: gplot13.gifOKtesting: gplot12.gifOKtesting: gplot11.gifOKunzip -t example1.zip testing: gplot10.giftesting: gplot9.gifOK OKtesting: gplot8.gifOKtesting: gplot7.gifOKtesting: gplot6.gifOKtesting: gplot5.gifOKtesting: gplot4.gifOKtesting: gplot3.gifOKtesting: gplot2.gifOKtesting: gplot1.gifOKtesting: gplot.gifOKtesting: sashtml.htm OKNo errors detected in compressed data of example1.zip. 41. Listing of: Work.ArchiveOrder by: InsertionNumber of levels: AllObs Path Type---------------------------------------------------------------------------------------------------1 myPackage#1Dirproc document name=archive; 2 myPackage#1sashtml.htmn#1File3 myPackage#1gplot.gifn#1File4 myPackage#1gplot1.gifn#1Fileimport archive="example1.zip" 5 myPackage#1gplot2.gifn#1File6 myPackage#1gplot3.gifn#1File to myPackage;7 myPackage#1gplot4.gifn#1File8 myPackage#1gplot5.gifn#1File9 myPackage#1gplot6.gifn#1Filelist/levels=all; 10 myPackage#1gplot7.gifn#1File 11 myPackage#1gplot8.gifn#1File 12 myPackage#1gplot9.gifn#1Filerun; 13 myPackage#1gplot10.gifn#1File 14 myPackage#1gplot11.gifn#1File 15 myPackage#1gplot12.gifn#1File 16 myPackage#1gplot13.gifn#1File 17 myPackage#1gplot14.gifn#1File 18 myPackage#1gplot15.gifn#1File 19 myPackage#1gplot16.gifn#1File 20 myPackage#1gplot17.gifn#1File 21 myPackage#1gplot18.gifn#1File 42. Meta Data 43. Meta Data Listing of: Work.ArchivemyPackage#1sashtml.htmn#1 Order by: Insertion Number of levels: 1Size Type in BytesCreated Modified Symbolic Link Templatelist sashtml.htmn/details; --------------------------------------------------------------------------------------------------- File 4536 28FEB2007:19:15:38 28FEB2007:19:15:38 Label --------------------------------------------------------------------------------------------------- MARKUP, Proc, Gplot, Gplot, Plot of Height by Weight, Gplot1, Plot of Height by Weight, Gplot2, Plot of Height by Weight, Gplot3, Plot of Height by Weight, Gplot4, Plot of Height by Weight, Gplot5, Plot of Height by Weight, Gplot6, Plot of Height by Weight 44. DescriptionPackage Meta Data AbstractName / Value 45. ods Package OpenDescription=My DescriptionPackage Meta Data Abstract=My abstractNameValue=Author=Me ; 46. DescriptionFile Meta Data MimeType Name / Value 47. ods Package Add File=example1.sasFile Meta Data Description=My 1st example MimeType=Text/Plain NameValue = Data=class ; 48. MultipleSimultaneouspackages 49. ods Package Open;Multiple ods Package(two) Open;Simultaneous ods html Package;packages ods rtf Package(two); ods pdf Package(two); 50. Package Templates 51. What is it??? 52. Creates Package directoriesWhat is it??? Default package attributesDefault publish optionsDefault close options 53. By file definitonOrganizing Files By Mime Type 54. path ./ files = body contents framepages code data stylesheet ;Organizing FilesBy Mime Type 55. path ./ files = body contents framepages code data stylesheet ;Organizing Files path images/ mimetypes = "image/bmp image/gifimage/jpg image/png" ; 56. Proc Template;Define Package packages.example3;A list of PathsRun; 57. Proc Template;Define Package packages.example3;default_path = "./";path ./ files = body contents frame code data ;A list of Pathspath style/ files = stylesheet ;path images/ mimetypes = "image/bmp image/gifimage/jpg image/png" ;Run; 58. Proc Template;Define Package packages.example3;publish = Archiveproperties(archive_path="./"archive_name="example3.zip");A set of Defaults Description = "This is my description";Abstract = "This is my abstract";clear = yes;NameValue = data="sashelp.class";publishing_framework = no; 59. Using the proc gplotTemplatedata=sashelp.class;plot height*weight;by name;run; quit; 60. ods packagetemplate= example3;ods html package;Using the proc gplotTemplatedata=sashelp.class;plot height*weight;by name;run; quit;ods package publish archive;ods package close; 61. Archive: example3.ziptesting: PackageMetaData OKtesting: images/gplot18.gifOKtesting: images/gplot17.gifOKtesting: images/gplot16.gifOKtesting: images/gplot15.gifOKtesting: images/gplot14.gifOKtesting: images/gplot13.gifOKtesting: images/gplot12.gifOKtesting: images/gplot11.gifOKunzip -t example3.zip testing: images/gplot10.giftesting: images/gplot9.gif OK OKtesting: images/gplot8.gif OKtesting: images/gplot7.gif OKtesting: images/gplot6.gif OKtesting: images/gplot5.gif OKtesting: images/gplot4.gif OKtesting: images/gplot3.gif OKtesting: images/gplot2.gif OKtesting: images/gplot1.gif OKtesting: images/gplot.gif OKtesting: ./sashtml.htmOKNo errors detected in compressed data of example3.zip. 62. Package Templates And Tagsets 63. Automatically create a packageWhat does it do? create multiple files organize files set file urls set file mimetypes 64. proc template;define tagset tagsets.example5;parent=tagsets.html4; Set the package template Set Mime TypesSetting it up Set File namesEnd;Run; 65. proc template;define tagset tagsets.example5;parent=tagsets.html4;package = example5; Set Mime TypesSetting it up Set File namesEnd;Run; 66. proc template;define tagset tagsets.example5;parent=tagsets.html4;package = example5;default_mimetype = "text/html";Setting it up stylesheet_mimetype = "text/css"; Set File namesEnd;Run; 67. proc template;define tagset tagsets.example5;parent=tagsets.html4;package = example5;default_mimetype = "text/html";Setting it up stylesheet_mimetype = "text/css";body = "test.html";stylesheet = "test.css";End;Run; 68. proc gplot data=sashelp.class; plot height*weight; by name;Using It run; quit; 69. ods tagsets.test file="example5.spk";proc gplot data=sashelp.class;plot height*weight;by name;Using Itrun;quit; ods tagsets.test close; 70. Archive: example5.spktesting: PackageMetaData OKtesting: images/gplot18.gifOKtesting: images/gplot17.gifOKtesting: images/gplot16.gifOKtesting: images/gplot15.gifOKtesting: images/gplot14.gifOKtesting: images/gplot13.gifOKtesting: images/gplot12.gifOKtesting: images/gplot11.gifOKtesting: images/gplot10.gifOKunzip -t example5.spk testing: images/gplot9.gif OKtesting: images/gplot8.gif