在JSL脚本中将时间戳转换为日期

时间:2019-01-09 13:19:08

标签: sql scripting sas-jmp jsl

我正在尝试在JSL中运行SQL语句,但是该语句包括带有datetime的列,我不需要datetime,而只是date。 JSL不喜欢“出于某些原因进行广播”,有人可以帮忙吗

Open Database(
        "DSN=EDWPROD; UID=" || ID || ";PWD=" || PASS || ";MODE=SHARE;DBALIAS=EDWPROD;",
        "SELECT  distinct Cast(TRXN_TS as date) as Trans_Date
    FROM    pODSCFAView.IMP_DBT_AUTHZN_POST_VW
    where Cast(TRXN_TS as date) as Trans_Date between (current_date - 16 day) and (current_date - 3 day) 
    WITH UR");

0 个答案:

没有答案