×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Passing a date via the WorkFlow Variables

Passing a date via the WorkFlow Variables

Passing a date via the WorkFlow Variables

(OP)
I have a mapping that has 2 parameters:

mBegDate --> Type=parameter --> DataType = nstring 11
mEndDate --> Type=parameter --> DataType = nstring 11

I'm trying to pass a date via the WorkFlow Variables and use in the mappings SQ Sql Override.
Both wf variables are set in the WF's presession_variable_assignment

wBegDate = 01-FEB-2014
wEndDate = 01-FEB-2015

SQ Sql Override:
SELECT CUST_UNIV_CLM_HDR.HEALTH_SYSTEM_ID,
CUST_UNIV_CLM_HDR.HEALTH_SYSTEM_SOURCE_ID,
CUST_UNIV_CLM_HDR.CLM_POP_TYPE,
CUST_UNIV_CLM_HDR.CLM_SRC_TYPE,
CUST_UNIV_CLM_HDR.ADMS_DT,
CUST_UNIV_CLM_HDR.DSCHG_DT,
CUST_UNIV_CLM_HDR.MBR_CLM_ID,
CUST_UNIV_CLM_HDR.PRI_PROV_NBR,
CUST_UNIV_CLM_LN.CLM_ID,
CUST_UNIV_CLM_LN.CLM_LN,
CUST_UNIV_CLM_LN.REV_CD,
CUST_UNIV_CLM_LN.POS,
CUST_UNIV_CLM_LN.PROC_CD,
CUST_UNIV_CLM_LN.PAID_AMT,
CUST_UNIV_CLM_LN.CLM_PAID_DT,
CUST_UNIV_CLM_LN.ALLOWED_AMT,
CUST_UNIV_CLM_LN.TOTAL_CHARGES
FROM
CUST_UNIV_CLM_HDR, CUST_UNIV_CLM_LN
WHERE CUST_UNIV_CLM_HDR.CLM_ID = CUST_UNIV_CLM_LN.CLM_ID
AND CUST_UNIV_CLM_HDR.HEALTH_SYSTEM_SOURCE_ID = mHSSID
AND TRUNC(CUST_UNIV_CLM_HDR.ADMS_DT) BETWEEN TO_DATE(mBegDate,'DD-MON-YYYY') AND TO_DATE(mEndDate,'DD-MON-YYYY')
ORDER BY
CUST_UNIV_CLM_LN.CLM_ID,
CUST_UNIV_CLM_LN.CLM_LN

However i'm getting an error:
Message: SQL Error [
ORA-00904: "FEB": invalid identifier
Message: SQ Instance [SQ_UNIV_CLM] User specified SQL Query [SELECT CUST_UNIV_CLM_HDR.HEALTH_SYSTEM_ID,
CUST_UNIV_CLM_HDR.HEALTH_SYSTEM_SOURCE_ID,
CUST_UNIV_CLM_HDR.CLM_POP_TYPE,
CUST_UNIV_CLM_HDR.CLM_SRC_TYPE,
CUST_UNIV_CLM_HDR.ADMS_DT,
CUST_UNIV_CLM_HDR.DSCHG_DT,
CUST_UNIV_CLM_HDR.MBR_CLM_ID,
CUST_UNIV_CLM_HDR.PRI_PROV_NBR,
CUST_UNIV_CLM_LN.CLM_ID,
CUST_UNIV_CLM_LN.CLM_LN,
CUST_UNIV_CLM_LN.REV_CD,
CUST_UNIV_CLM_LN.POS,
CUST_UNIV_CLM_LN.PROC_CD,
CUST_UNIV_CLM_LN.PAID_AMT,
CUST_UNIV_CLM_LN.CLM_PAID_DT,
CUST_UNIV_CLM_LN.ALLOWED_AMT,
CUST_UNIV_CLM_LN.TOTAL_CHARGES
FROM
CUST_UNIV_CLM_HDR, CUST_UNIV_CLM_LN
WHERE CUST_UNIV_CLM_HDR.CLM_ID = CUST_UNIV_CLM_LN.CLM_ID
AND CUST_UNIV_CLM_HDR.HEALTH_SYSTEM_SOURCE_ID = 1677509
AND TRUNC(CUST_UNIV_CLM_HDR.ADMS_DT) BETWEEN TO_DATE(01-FEB-2014,'DD-MON-YYYY') AND TO_DATE(01-FEB-2015,'DD-MON-YYYY')
ORDER BY
CUST_UNIV_CLM_LN.CLM_ID,
CUST_UNIV_CLM_LN.CLM_LN]


Any thoughts as to why I'd be getting this error would be appreciated.
Thank you.

RE: Passing a date via the WorkFlow Variables

Try Adding quotes

AND TRUNC(CUST_UNIV_CLM_HDR.ADMS_DT) BETWEEN TO_DATE('mBegDate','DD-MON-YYYY') AND TO_DATE'(mEndDate','DD-MON-YYYY')

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close