×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




My 'default" is to name the program to call the same as the command i.e.
WRKCUST command calls CL program WRKCUST to work with customers....

Mark Allen
I.S. Manager
Wilkes Telephone & Electric
A Dycom Company
Phone: (706) 678-9565
Email: allenmark@nu-z.net
http://www.nu-z.net




:-----Original Message-----
:From: midrange-l-admin@midrange.com
:[mailto:midrange-l-admin@midrange.com] On Behalf Of Jim Langston
:Sent: Wednesday, October 24, 2001 1:52 PM
:To: 'midrange-lmidrangecom'
:Subject: Re: Command Creation (Was: Recursive CL - Data decimal error)
:
:
:I believe there is a reason command creation is underutilized
:on the AS/400, er, eserver, um, iseries?
:
:I create an RPG program, very simple to compile.  14 using
:PDM. I create CL program, 14 using PDM. I create DDS, 14 using
:PDM. I create command source.  14.  Remember to prompt, now what is the
:   call I want to use?  And going back having to recreate commands
:   months later, what program was this command supposed to call?
:   No idea.  I hope they documented it in the command source
:   (yeah, right, like that'll ever happen).
:
:I think commands would be utilized a lot more if you could
:actually specify the program to call inside the command source
:itself, then just compile with 14.
:
:Anyway, that's why *I* don't utilize them that much.
:
:Regards,
:
:Jim Langston
:
:Message: 11
:From: David.X.Kahn@gsk.com
:Subject: Re: Recursive CL - Data decimal error
:To: midrange-l@midrange.com
:Date: Wed, 24 Oct 2001 11:17:36 +0100
:Reply-To: midrange-l@midrange.com
:
:Pete wrote:
:
:> Write your own command, which knows the correct data types of the
:> parameters and passes them accordingly. It's really very
:easy to write
:> simple commands.
:
:That's the stuff! Commands must be one of the most
:under-utilised features of CL. I've been to many shops where
:they are not used at all, for no very clearly defined reason.
:I've also known one quite large shop where numeric parameters
:were prohibited as well, because "it is not possible to pass a
:packed decimal parameter".
:
:As well as ensuring that parameters are correctly formatted
:commands, with a validity checker if necessary, can also take
:care of the parameter validation thus simplifying the CPP and
:letting the programmer concentrate on the function it's meant
:to perform.
:
:Dave...
:_______________________________________________
:This is the Midrange Systems Technical Discussion (MIDRANGE-L)
:mailing list To post a message email: MIDRANGE-L@midrange.com
:To subscribe, unsubscribe, or change list options,
:visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
:or email: MIDRANGE-L-request@midrange.com
:Before posting, please take a moment to review the archives
:at http://archive.midrange.com/midrange-l.
:



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2026 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.