× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Prompt override program and dates
  • From: bvining@xxxxxxxxxxxx
  • Date: Tue, 15 Sep 98 12:34:37 CDT

Loyd,

So long as you want the date separators to appear on the prompt then
the quotes are needed.  On the prompt display it may appear that you
can directly key in the separators, but if you do and then use F14 you'll
see that the prompter is just adding the quotes for you (under the
covers).  Likewise if you want the separators when specifying the Date
on a command line prior to prompting, you again must use the quotes.

Without the quotes the system is interpreting the separator as an
operator, and that's not allowed.

Bruce Vining

>
>I have a prompt override program, returning a date to a command. The
>command parameter for the date is defined as:
>PARM KWD(DATE) TYPE(*DATE) MIN(1) PROMPT('Date')
>
>The POP works fine, except that I must return the date inside quote
>marks: '09/15/1998'. Subsequently, the quote marks appear in the
>command's input field.
>
>I would like to return the date without quote marks, so it appears as
>Date . . . 09/15/1998   instead of
>Date . . . '09/15/1998'
>
>I tried using EXPR(*YES) on the DATE keyword, but that isn't allowed.
>
>Are there any suggestions?
>
>Thank you,
>Loyd Goodbar
>

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.