BookmarkSubscribeRSS Feed

SAS Viya 3.4: Promote a SAS Data Studio Plan

Started ‎07-29-2019 by
Modified ‎07-29-2019 by
Views 2,306

In SAS Viya 3.4 as an Administrator you can promote a SAS Data Studio plan between environments by using SAS Environment Manager to export your saved data plan from one environment and then import the exported JSON file in another environment. This process is easier if you have the same CAS libraries, table names, and folder structure in both the source and target environment. However, there are some workarounds if that is not the case. This post will walk you through the steps for promoting a SAS Data Studio Plan from one environment to another.

Export Saved SAS Data Studio Plan

The first step to promoting a SAS Data Studio Plan file is to log on to SAS Environment Manager as an Administrator to the Viya installation where the plan file is saved. You must have SAS Administrator privileges in order to export/import content from SAS Viya. When signing in, select Yes to assume the group SASAdministrators, so you have the appropriate privileges.

 

1_AssumableGroups.png

Select any image to see a larger version.
Mobile users: To view the images, select the "Full" version at the bottom of the page.

 

Once you are signed into to SAS Environment Manager, then select the Content tab. To view all the content items in the SAS Viya installation.

 

2_Content.png

 

Navigate to the folder where the SAS Data Studio Plan file is saved. Highlight the plan file you want to export and select the Export button Icon1_Export.png.

 

3_ExportPlan.png

 

Enter a name for the export file you want to create and select Export.

 

4_ExportPlan.png

 

A JSON file for the exported data plan is created in the Downloads folder of your client machine.

 

5_JSONFile.png

Import the exported JSON file

Now, that you have the exported JSON file for the SAS Data Studio plan, you need to log on as a SAS Administrator to SAS Environment Manager on the Viya installation where you want to promote (move) the plan file. On the Content tab, navigate to a folder and select the Import button Icon2_Import.png.

 

6_Import.png

 

On the Select source step of the Import window, select Icon3_File.png to navigate to the location of the exported data plan file. Note: You may need to copy the exported JSON file to a location accessible by this Viya installation.

 

7_SelectSource.png

 

Select the JSON file for the exported data plan.

 

8_SelectSourceFile.png

 

Note: The plan file will be imported to the same folder name it was in the system from which it was exported. You can always move it to another content folder once the file is imported. The file will also have the same name. You can change the plan name after it is imported if desired.

 

Next, select the Mapping step. If the CAS server, caslib and source table names referred to in the exported data plan exist in this Viya system, then the mapping is complete. Note: The table name will also need to have all fields that are referenced in the data plan. If any of these items are not a match in this Viya installation, then you will need to map these items to the appropriate names in this system. This creates a mapping file that can be saved for future use. If you already have a saved mapping file, then you can select it. For more information on mapping files, refer to the documentation.

 

9_Mapping.png

 

Finally, select the Finish step. If all the prior steps have been completed successfully you can select the Import button. If not, you will need to go back and correct any errors on the prior steps before the Import button will be available for selection.

 

10_Finish.png

 

Once the import is complete, the results are displayed. Confirm that all tasks succeeded.

 

11_ImportStatus.png

 

Select Close to close the Import window.

Open Imported SAS Data Studio Plan

The final step is to confirm that the imported SAS Data Studio Plan file works as expected. Select Icon4_Menu.png > Prepare Data to open SAS Data Studio. Select Open Plan.

 

12_OpenPlan.png

 

Navigate to the imported data plan file. Highlight the plan file and select Open.

 

13_OpenPlanFile.png

 

The selected plan file will open and run all of its steps. There should be no errors if the plan file was imported and mapped successfully.

 

14_PlanFile.png

 

 

For more information on promotion of content in SAS Viya 3.4, refer to the following:

Version history
Last update:
‎07-29-2019 11:06 AM
Updated by:
Contributors

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

Free course: Data Literacy Essentials

Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning  and boost your career prospects.

Get Started

Article Tags