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



Jeff Young wrote on 07/12/2006 10:32:53 AM:

I have a CLLE program that has a variable of 150 char.
This is passed to / from an RPGLE program that it calls.
The program then passes this on a SBMJOB command to a batch program.
I verified that the variable *did* have the full length allocated, 
with blanks at the end.
I know that if I use a constant, and the length of the parm expected
is > 32 I need to fill the rest with blanks, but using a CL Variable
declared with the correct length, the SBMJOB command truncates the 
value by trimming trailing blanks when passing it to the batch. I 
determined this by checking the job log for the batch job to see the
values being passed.
I have a work around for this by creating another variable with 151 
bytes and placing an "*" in pos 151, then using that on the SBMJOB.
Is this normal?

IIRC, this is the expected behaviour of SBMJOB.  I think an alternate work 
around is to create a *CMD frontend to the program you are submitting.

HTH,
Adam

#####################################################################################
Attention:
The above message and/or attachment(s) is private and confidential and is 
intended 
only for the people for which it is addressed. If you are not named in the 
address 
fields, ignore the contents and delete all the material. Thank you. Have a nice 
day.

For more information on email virus scanning, security and content
management, please contact administrator@xxxxxxxxxxxx
#####################################################################################

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.