I think you'll find it's a CLP issue. If you pass shorter parameters
than CLP is expecting, you will get undefined contents after your "good"
parameter data. (This may be dependent upon the length of the parameter,
I seem to recall that with parameters up to a certain length this does
not apply).

Trevor Briggs
Lincare, Inc.
(727) 431-1246

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Steinmetz, Paul
Sent: Wednesday, April 09, 2014 3:48 PM
To: 'Midrange Systems Technical Discussion'
Subject: CLP pgm with 2 paramters intermittently getting garbage when
calledfrom AJS

I have a CLP program that I call from AJS (Advanced Job Scheduler)
Intermittently, the 2nd parameter is getting garbage characters at the
end, shown via dump of CLP pgm.
In the CLP program, parm 1 length defined as 15, parm 2 length defined
as 41.
The lengths being passed from AJS are less, 12 and 33.

Program . . . . . . . . . . . . > ICAPICMD Name
Library . . . . . . . . . . . *LIBL Name, *LIBL, *CURLIB
Parameters . . . . . . . . . . . > ''

+ for more values > 'sudo /sbin/service jboss-as start'

From the CLP dump
&CMD *CHAR 41 'sudo /sbin/service
jboss-as start E seque'

The "E seque" is the garbage, causing the CLP to fail.

Is this an AJS parameter issue?

Thank You
Paul Steinmetz
IBM i Systems Administrator

Pencor Services, Inc.
462 Delaware Ave
Palmerton Pa 18071

610-826-9117 work
610-826-9188 fax
610-349-0913 cell
610-377-6012 home


This thread ...


Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2015 by MIDRANGE dot 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 here. If you have questions about this, please contact