BookmarkSubscribeRSS Feed
How to use the Export Content Custom Step
peisin
SAS Employee

The Export Content custom step enables users of Viya to export their content from a running Viya deployment before the deployment ends. With the custom step, users can specify a folder and multiple Model Studio projects for export from a single interface. This feature provides users an easy way to export commonly used content types in the SAS Hackathon event. 

 

What is a Custom Step?

 

A custom step enables users to create an interface and a customized program that can be executed seamlessly in SAS Studio. They can be used to perform a wide range of tasks, such as data preprocessing, data transformation, statistical analysis, and reporting. With custom steps, users have the flexibility to customize their own programs to meet their needs and requirements. Custom Step is documented at SAS Help Center: SAS Studio: Working with Custom Steps

 

 

Working with the Export Content Custom Step

 

To get your hands on the custom step, download the zip file from this blog and extract the .step file. Open the Applications menu and select “Develop Code and Flows” to navigate to SAS Studio.

 

peisin_1-1678675289473.png

 

 

Open the Explorer section in the navigation pane to access the server file system and the SAS Content server locations. 

 

peisin_3-1678675289479.png

 

 

Upload the Export Content Custom Step to any directory in SAS Content server location. 

 

peisin_5-1678675289481.png

peisin_6-1678675289482.png

 

 

Once you have uploaded the step to SAS Content, it appears in the Steps pane, where you can edit the step. Find the Export Content Custom Step in the Steps section in the navigation pane

 

peisin_8-1678675289484.png

 

 

 

 Right click on Export Content and select “Open in a tab”. 

 

peisin_10-1678675289486.png

 

 

Fill in the fields accordingly. You can leave the second field blank if there's no Model Studio project to export.

 

peisin_11-1678675289487.png

 

 

peisin_13-1678675289489.png

 

To note: Please choose any folder within the SAS Content for the first field. 

You can only select one folder, preferably the parent folder that contains all the content you have created.

 

 

peisin_15-1678675289490.png

 

To note: Please choose any folder within the SAS Server for the third field.

 

 

Finally, click the Run button to execute the custom step. You can download the exported files from the Explorer section in the navigation pane after it has finished running.

 

Conclusion

 

There are some content types that are still not supported for export via the custom steps. They are CAS tables residing in CAS libraries, physical Astores and workflows(.bpmn). 

 

To learn how to export those content, refer to this.

 

 

 

2 Comments