DI Studio Code Importer for Comments

2

In DI Studio 4.3, SAS offers a code importer utility that can assist with moving legacy SAS code into an enterprise DI environment. The importer uses PROC SCAPROC to analyze and translate the code into DI Studio components. There is also a neat utility to bring in code comments and convert to component names/descriptions or even the new 'Sticky Note'. However, this requires a little prep time with your existing SAS code.

1. Only the following three tags can & must be used to convert a comment into a DI Studio element:

  • ALTERNATE_NODE_NAME: the node name
  • ALTERNATE_NODE_DESCRIPTION: the node description
  • COMMENT: tags that are grouped together into a private note attached to the node

2. Each tag must be placed AFTER the proc or data step that you want it associated with. - This is because of the way PROC SCAPROC analyzes the code.

3. The tag and the comment /* */ must include spaces between them, in order for the importer to translate successfully. Here is an example of what works & what doesn't.

Works:
/* COMMENT: This is a cool proc! I really <3 how it works. */

Doesn't Work:
/*COMMENT:Why doesn't this comment get included? I'm really frustrated*/

Share

About Author

Angela Hall

Senior Technical Architect

Angela offers tips on using the SAS Business Intelligence solutions. She manages a team of SAS Fraud Framework implementers within the SAS Solutions On-Demand organization. Angela also has co-written two books, 'Building BI using SAS, Content Development Examples' & 'The 50 Keys to Learning SAS Stored Processes'.

2 Comments

  1. Venkata R Potluri on

    Hi,
    I have about 637 DI Jobs.
    I want to pull out all the information about all the jobs along with source and target tables etc in one go.
    I got this information by running a report . The report is in HTML formt.
    I want this in a dataset or at least in xml.
    Your help in this is highly appriciated.

    Thank You

    Ramana

Back to Top