BookmarkSubscribeRSS Feed
JIGNESH
Calcite | Level 5

Hello All,

 

I am currently using SAS DI and Scheduled all my jobs in SAS Management Console 

Now I am migrating in to SAS VIYA 9.4 

 

Can anyone know how can i migrate SAS DI Scheduler flow in SAS VIYA

Also run all jobs and load data in sas viya.

 

Thanks 

Jignesh Patel

 

 

6 REPLIES 6
alexal
SAS Employee

@JIGNESH ,

 

You can schedule jobs using SAS Job Execution. Here is a good example of how to do that.

JIGNESH
Calcite | Level 5

Hi Alexal

 

It looks like SAS VIYA has its own schedule manager where we schedule jobs.

Also, By using SAS Viya Studio we can schedule program by using snippets functionality. 

 

I will work upon on both option.

 

But is their other option in which we import SAS DI Jobs directly  as SPK Package ?

 

Thanks 

Jignesh Patel

LinusH
Tourmaline | Level 20
IMO Viya isn't ready for DI applications, especially if you are migrating a off of legacy from 9.4.
DI Studio/Server doesn't exist on Viya. So how do you intend to execute the code? If you are thinking of to use the the deployed .sas code, you need to do a LOT of changes.
There will be a major data management release for Viya later this year (I hope). In that perspective early next your it should mature to start thinking of migration, since there should be support for importing 9.4 spk's.
In the mean time, I recommend a parallel life where you could redirect ETL of you data marts/ABT to Viya/CASlibs.
Data never sleeps
JIGNESH
Calcite | Level 5

Hi LinusH,

 

Thanks a lot for your reply. So till now there will be no bridge directly between in SAS Di  and SAS Viya.  

 

If I want to run SAS DI codes in SAS Viya then can you tell me which type of major changes require from server / connection side ?

 

Thanks 

Jignesh Patel

 

 

 

 

LinusH
Tourmaline | Level 20

I don't think it makes sense to "execute" the code in Viya unless you have severe performance issues as of now.

But there are transformations available in DI Studio (later versions) that lets you connect to Viya, upload data, and send steps for processing.

 

https://documentation.sas.com/?docsetId=etlug&docsetTarget=p0k42wyoble1hkn17mumd71syeej.htm&docsetVe...

 

If you are using a version older then M5, you'll have to use SAS/CONNECT.

Data never sleeps
BeNur
Obsidian | Level 7

Hi @JIGNESH ,

 

The main thing you need is to configure connect between sas 9.4 and SAS Viya. 

  1. Obtain the CA certificate that was used to sign the certificate that the CAS Server is using.
    the trusted.pem file usually located at /opt/sas/viya/config/etc/SASSecurityCertificateFramework/cacerts
  2. Copy certificate to SAS94 server into a directory where all users can read the trusted.pem  file(chmod 755)
  3. On the SAS94 server where WorkspaceServer works, set environment variable CAS_CLIENT_SSL_CA_LIST= to the trust list that the client uses to connect to the server. 
  4. Add the same env variable into sasenv_loca file ( /app/sas/94/sashome/SASFoundation/9.4/bin/sasenv_local)

 

I am using DI 4.903 and as @LinusH  mentioned it has the special transformation for loading tables into CAS (SAS Viya).

This link helped me a lot https://communities.sas.com/t5/SAS-Communities-Library/CAS-and-SAS-Data-Integration-Studio-4-903-on-...

Note:  that you will need to create authinfo file

Also, I created the custom script that I am using for loading table into CAS (you can also run it EG)

%macro mLoadTableToCAS (mvSASLibname=,mvTableName=, mvTableNameInCAS=, mvCasLibname=);
    %macro dummy; %mend dummy;
    /* Create CAS session  */
    cas CASAUTO host="<cas server hostname>" port=5570;
  
    
    LIBNAME CASRDBP CAS  CASLIB=&mvCasLibname  PORT=5570  SERVER="<cas server hostname>" ;

    %let checkExist=%eval(%sysfunc(exist(CASRDBP.&mvTableNameInCAS, DATA)));   
    %if  (&checkExist) %then %do;
        /* Replace target table requested: Drop session table  */
        proc casutil sessref=&_SESSREF_.;
           droptable casdata="&mvTableNameInCAS." incaslib="&mvCasLibname" quiet;
        quit;
        /* Replace target table requested: Drop global table  */
        proc casutil sessref=&_SESSREF_.;
           droptable casdata="&mvTableNameInCAS." incaslib="&mvCasLibname" quiet;
        quit;
   %end;
    /* PROC CASUTIL: LOAD DATA  */
    proc casutil outcaslib="&mvCasLibname" sessref=&_SESSREF_.;
                 load data=&mvSASLibname..&mvTableName casout="&mvTableNameInCAS."
                 promote;
    quit;
    /* Terminate CAS session  */
    cas CASAUTO terminate;
%mend mLoadTableToCAS;
 
libname SASLIB '<path>'; /*Please specify libname statement*/
%let mpSaslib=SASLIB;
%let mpCaslib=Public;/*specify CAS library name where you want to load data. By default Public*/
%let mpTableName=<table_name>;  /*Please specify table name.*/

  %mLoadTableToCAS(
            mvSASLibname=&mpSaslib,
            mvTableName=&mpTableName,
            mvTableNameInCAS=&mpTableName,
            mvCasLibname=&mpCaslib);

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
Discussion stats
  • 6 replies
  • 2611 views
  • 0 likes
  • 4 in conversation