BookmarkSubscribeRSS Feed
ChrisLemberg
Fluorite | Level 6
Hi,

I have a problem with Date-Parameters and Stored Processes.

I am building a new report which is supposed to have a Date-Parameter. I created this Report with EG 4.1 and built the parameter via Parameter Manager.
When I run my report everything works perfectly - I have a prompt and I chose the date I want to be the effective date.
But when I try to create a stored process there a problems compiling the source code. The error message is something like "... you have to enclose a date-variable with comma". With this Error Message I am not able to create this stored process respectively run the stored process if I ignore the Error Message.

I hope you can help me with this problem and point a solution.

Greetings
Chris
1 REPLY 1
Vince_SAS
Rhodochrosite | Level 12
It is really difficult to tell what is happening without seeing the prompt definition, stored process source code, and SAS log.

Date prompts return values to the stored process code using the format DDMMMYYYY, so your stored process code needs to be able to handle that format.

Vince DelGobbo
SAS R&D

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
  • 1 reply
  • 739 views
  • 0 likes
  • 2 in conversation