BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
steve_db
Calcite | Level 5

I'm new to SAS DI, using 4.2.

i have a need to call a Teradata function for a Target column expression in a Join transformation.

for example:

I mapped the source columns

RNT_AGRS.due_ci_tmsp and  OPTMZ_GRP_BR_CURR_AIRPT.grp_br_tmz_cde

to the target column;

the expression:

the Target column expression is:

  SYSLIB.ERAC_LCL_TO_GMT(RNT_AGRS.due_ci_tmsp, OPTMZ_GRP_BR_CURR_AIRPT.grp_br_tmz_cde

) as EVNT_GMT_TSP length = 8


at run time SAS DI complains:


  SYSLIB.ERAC_LCL_TO_GMT(RNT_AGRS.due_ci_tmsp, OPTMZ_GRP_BR_CURR_AIRPT.grp_br_tmz_cde

) as EVNT_GMT_TSP length = 8

                                       _

                                       22

                                       76

ERROR 22-322: Syntax error, expecting one of the following: !, !!, &, *, **, +, ',', -, /, <, <=, <>

, =, >, >=, ?, AND, BETWEEN,

              CONTAINS, EQ, EQT, GE, GET, GT, GTT, LE, LET, LIKE, LT, LTT, NE, NET, OR, ^=, |, ||, ~

=. 

ERROR 76-322: Syntax error, statement will be ignored.

1 ACCEPTED SOLUTION

Accepted Solutions
Patrick
Opal | Level 21

You must make sure that the SQL executes on the Teradata side. You can achieve this by selecting "yes" for the pass through join options as shown in Figure 12 in the linked paper http://support.sas.com/resources/papers/proceedings10/116-2010.pdf

View solution in original post

4 REPLIES 4
Patrick
Opal | Level 21

You must make sure that the SQL executes on the Teradata side. You can achieve this by selecting "yes" for the pass through join options as shown in Figure 12 in the linked paper http://support.sas.com/resources/papers/proceedings10/116-2010.pdf

steve_db
Calcite | Level 5

Thanks Patrick.

the picture in Figure 12 doesn't resemble what i see when I look at the join:

steve_db
Calcite | Level 5

when I right click the Join and click on Properties, I check the option "Use the Optimized pass-through facility for SQL statements";

when I run with this, the column using the function errors with:

ERROR 22-322: Syntax error, expecting one of the following: !, !!, &, *, **, +, ',', -, /, , =, , =, >, >=, ?, AND, BETWEEN, CONTAINS, EQ, EQT, GE, GET, GT, GTT, LE, LET, LIKE, LT, LTT, NE, NET, OR, ^=, |, ||, ~=.

2994          SYSLIB.ERAC_LCL_TO_GMT(RNT_AGRS.due_ci_tmsp , OPTMZ_GRP_BR_CURR_AIRPT.grp_br_tmz_c

de ) as EVNT_GMT_TSP length = 8

                                    _
                                    22
                                    76

ERROR 22-322: Syntax error, expecting one of the following: !, !!, &, *, **, +, ',', -, /, <, <=, <>

, =, >, >=, ?, AND, BETWEEN,

          CONTAINS, EQ, EQT, GE, GET, GT, GTT, LE, LET, LIKE, LT, LTT, NE, NET, OR, ^=, |, ||, ~

=. 

ERROR 76-322: Syntax error, statement will be ignored.

2995            format = Datetime.
2996            informat = Datetime.
2997            label = 'gmt timestamp when rental was due to be returned',

this SQL statement is successfully tested in Teradata directly, but will not run for DIS?

steve_db
Calcite | Level 5

thank you Patrick -

turns out that your answer was correct. I couldn't see the properties pane, and didn't know that I had to click on the menu item in the Join to "Show Properties Pane";

once I did that and selected pass-through for the Join - all went  well...

thanks.

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 connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 1470 views
  • 0 likes
  • 2 in conversation