BookmarkSubscribeRSS Feed
lucas_palin_sas_com
Calcite | Level 5

I would like to convert a oracle table to array , using ds2 , for RTDM.

 

package return_column/overwrite=yes;

 

      /* read table*/

      declare package sqlstmt m_stmtSelectArrasto('
      select column1, column2 , column3
      from table
      ;

 

/*write a array*/

 

 

column1 column2 column3

     a1             a2            a3 

     b1             b2            b3

     c1             c2             c3 

 

Convert to 

 

character_list {a1,b1,c1}

character_list {a2,b2,c2}

character_list {a3,b3,c3}

 

2 REPLIES 2
ChrisNZ
Tourmaline | Level 20

Sorry, your intentions are unclear (to me at least).

lucas_palin_sas_com
Calcite | Level 5

I need to create a code to use in RTDM because rtdm data processing returns only one record. And I need to return more than one. for it would create a DS2, read a table, using parameters to filter. In return this reading, I would receive from 1 to N records. and this return would have values ​​in a arraylist.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1014 views
  • 0 likes
  • 2 in conversation