Can you explain the tech details behind this?
Is this related to what Gary stated about CL has 32 limit for auto clearing.
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Wednesday, April 09, 2014 3:56 PM
To: Midrange Systems Technical Discussion
Subject: Re: CLP pgm with 2 paramters intermittently getting garbage when called from AJS
The usual official reply:
Do not CALL the cl program.
Make a *CMD object and use that to execute the program.
This WILL make the issue go away.
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600 Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
Kendallville, IN 46755
From: "Steinmetz, Paul" <PSteinmetz@xxxxxxxxxx>
To: "'Midrange Systems Technical Discussion'"
Date: 04/09/2014 03:48 PM
Subject: CLP pgm with 2 paramters intermittently getting garbage
when called from AJS
Sent by: midrange-l-bounces@xxxxxxxxxxxx
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
The lengths being passed from AJS are less, 12 and 33.
Program . . . . . . . . . . . . > ICAPICMD Name
Library . . . . . . . . . . . *LIBL Name, *LIBL, *CURLIB
Parameters . . . . . . . . . . . > '10.5.173.152'
+ 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?
IBM i Systems Administrator
Pencor Services, Inc.
462 Delaware Ave
Palmerton Pa 18071