× 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.



Thanks everyone for all the help and tips.
Parm length corrected along with CMD created.
For a CMD default value, the maximum positions is 32.
I need 34.
Is this 32 cmd parm length issue the same we've been discussing, or is this a different maximum.
From CMD help text.
o If the default is a character constant, it can have no more than
32 bytes.

Paul

-----Original Message-----
From: Steinmetz, Paul
Sent: Thursday, April 10, 2014 8:49 AM
To: 'Midrange Systems Technical Discussion'
Subject: RE: CLP pgm with 2 paramters intermittently gettinggarbage whencalled from AJS

Our last move, 6 months ago was housecleaning time.
New office had to be paperless, boss's orders.
5 book cases full of S/38, AS/400 manuals.
Even two shelves full of NEWS/38 , 400.
I think I had every issue, in order, from 1988 forward.

Back to the main issue.
Making the lengths match and making it a CMD.

The thing I don't understand is why is it intermittent.
Today it ran fine 3 times, no garbage.
Yesterday, all kinds of garbage.
Parms are basically pointers to memory locations.
CL don't stay in memory, every time you call, reloads a fresh copy.
Where is the garbage coming from?

Paul



-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Paul Nelson
Sent: Thursday, April 10, 2014 8:32 AM
To: 'Midrange Systems Technical Discussion'
Subject: RE: CLP pgm with 2 paramters intermittently gettinggarbage whencalled from AJS

:-)

Mine all got converted to photo albums. It's up to my sons to deal with them now. I'm done moving them around the country.

Paul Nelson
Cell 708-670-6978
Office 409-267-4027
nelsonp@xxxxxxxxxxxxx

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Roger Harman
Sent: Thursday, April 10, 2014 12:44 AM
To: 'Midrange Systems Technical Discussion'
Subject: RE: CLP pgm with 2 paramters intermittently gettinggarbage whencalled from AJS

As I recall, in '97, we had a 4-shelf book case stuffed with the white IBM binders. I still have some of the binders (no content) - very heavy duty.


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of John McKee
Sent: Wednesday, April 09, 2014 9:33 PM
To: Midrange Systems Technical Discussion
Subject: Re: CLP pgm with 2 paramters intermittently getting garbage whencalled from AJS

I wish I had known of these limits in 1997. No internet. I was writing a CL that built a dynamic program call. Could not understand why the command string was terminated with garbage. So, added code to set an end of command marker and trim off everything else.

Didn't even have access to manuals.

John McKee


On Wed, Apr 9, 2014 at 11:20 PM, Roger Harman
<roger_harman@xxxxxxxxxxx>wrote:

Well, true it's not a bug. "Working as designed". I should have
referred to it as an "issue" with my testing.

I knew right away what it was when I did a DMPCLPGM and saw the nulls.
But,
like I said, it's been YEARS since I ran into it and quite
coincidental to see this thread.

Had I just tested my program being called by the RPG as planned, it
would never have cropped up. My fault for testing the call from the
command line.



-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Steve Landess
Sent: Wednesday, April 09, 2014 4:03 PM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: CLP pgm with 2 paramters intermittently getting garbage
whencalled from AJS

Roger -
*not* a bug. This is expected behavior when you you pass a value
shorter than the defined parameter length [when the parameter is
defined as having length > 32].
- sjl


"Roger Harman" wrote in message
news:mailman.70.1397078240.2655.midrange-l@xxxxxxxxxxxx...

I had to laugh at this discussion. Just this morning I got bit by the
32 character >>> bug <<< when testing something from a command line.
Once I dumped the CL, the problem/resolution pretty much jumped off
the
screen.
Passed 33 chars to a 35 long parm and ended up with two nulls that
some vendor software did not like.

It's been years since I ran across this but funny that, after
resolving my issue, I logon and see this whole thread.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx 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-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.