DEFAULT WITH DEFINE
Deskin, Bob
Bob.Deskin@Cognos.COM
Tue, 1 Dec 1998 12:47:04 -0500
If you know what the value is if the user oesn't enter anything, then you
can set another define. For example, with a date field, the value will be 0,
so:
DEFINE prompt-date DATE = PARM PROMPT "Enter the date: "
DEFINE date-to-use DATE = prompt-date IF prompt-date <> 0 ELSE SYSDATE
Bob Deskin
Senior Product Advisor bob.deskin@cognos.com
Cognos Inc. (613) 738-1338 ext 4205 FAX: (613) 228-3149
3755 Riverside Drive P.O. Box 9707 Stn. T, Ottawa ON K1G 4K9 CANADA
> ----------
> From: Gassett, Chris[SMTP:gassett@aavid.com]
> Sent: Tuesday, December 01, 1998 11:47 AM
> To: 'Powerhouse List'
> Subject: DEFAULT WITH DEFINE
>
> Is there a way to default a DEFINE statement without setting up another
> DEFINE statement?
>
> Example:
>
> DEFINE TEMP01 DATE = &
> PARM PROMPT "DATE: " DEFAULT SYSDATE
>
> I know the DEFAULT SYSDATE is not valid but that is what I want the
> system to do.
>
> Thanks, Chris
> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> =
> Subscribe: "subscribe powerh-l" in message body to
> majordomo@lists.swau.edu
> Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
> powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
> This list is closed, thus to post to the list, you must be a subscriber.
>
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.