× 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: Re: Command prompt parameter expansion with ampersand
  • From: "Simon Coulter" <shc@xxxxxxxxxxxxxxxxx>
  • Date: Fri, 18 Aug 00 10:51:17 +1000


Hello Peter,

You wrote:
>1) Where is this documented? I thought the obvious place would be the CL
>Programming or CL Reference manual, but if it's there I couldn't find it. I
>did find a discussion under parameter length of the discrete sizes used by
>the command prompter ("1 through 12 characters and 17, 25, 32, 50, 80, 132,
>256, and 512 characters") and that the prompter will use the next larger
>size.  But nothing that says you can use an ampersand to expand the entry
>area.

Documented in "How to use this display" reached by pressing F13 when prompting 
a 
command.

>2) How do I get the prompter to use a smaller initial size? As an example,
>the CHGDTAARA command allows you to change up to 2000 positions of a data
>area at once. On the initial  prompt, it provides space for 32 characters,
>not 512 (the most the command prompter will allow). But you can expand it up
>to 512 by using the ampersand method. How do I define a parameter to act
>this way?

AFAIK you cannot control the initial size.  The prompter chooses an appropriate 
size 
based on the data type, size of field, and the prompt environment.  Since 
CHGDTAARA can 
handle a number of different types of data on the VALUE parameter -- *CHAR, 
*LGL, *DEC 
-- it is probably defined with a type of *X and will have PASSATR(*YES) 
specified.  Also 
IBM don't use the same command compiler we have so you may not be able to 
acheive 
identical results.

>3) What manual is available to a new user that explains command prompting
>etc.? I have a vague memory of a Workstation User's Guide or some such, but
>a search of the SoftCopy Library and the Info Center found nothing. Is it my
>search technique? Is there a different manual? Or is there nothing for a new
>user to read on how to use a green screen?  I don't actually have any new
>user to point to this, but in searching for answers to 1 & 2 I got to
>wondering.

Sit them down in front of the terminal and press F13 when prompting a command.  
Leave 
them to read at their own pace.


Regards,
Simon Coulter.

«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»
«» FlyByNight Software         AS/400 Technical Specialists       «»
«» Eclipse the competition - run your business on an IBM AS/400.  «»
«»                                                                «»
«» Phone: +61 3 9419 0175      Mobile: +61 0411 091 400           «»
«» Fax:   +61 3 9419 0175      mailto: shc@flybynight.com.au      «»
«»                                                                «»
«» Windoze should not be open at Warp speed.                      «»
«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»
+---
| 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-Ups:

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.