DEFAULT WITH DEFINE
Shah, Roshan (Windsor, HQ)
shahro01@unisourcelink.com
Tue, 1 Dec 1998 14:25:31 -0500
Have you thought of doing it in JCL ? Using VESOFT, you can do
excellent programming in a JCL. I would suggest - write simple & Clear
Powerhouse code and any prompts - let jcl handle it.
Roshan
>----------
>From: Deskin, Bob[SMTP:Bob.Deskin@Cognos.COM]
>Sent: Tuesday, December 01, 1998 12:47 PM
>To: 'Powerhouse List'
>Subject: RE: DEFAULT WITH DEFINE
>
>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.
>
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
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.