|
assuming you are doing CALL MYPROG ('/home' '3') from the command
line...
You are running into the well known 32-character default length issue
of the command interpreter.
Basically, the system doesn't know '/home' should be placed into a
variable 255 bytes long.
Best fix is to build a command front end which would allow you to
tell the system how big the parm is.
You could pad out the value, but you'd actually need to pad it out to
256 and the 256th character needs to be non-blank. Otherwise the
system trims it back to '/home' and you are back where you started.
On Wed, Jun 12, 2013 at 2:33 PM, Robert Clay wrote:
<<SNIP>>
d Main PI
d InputDir 255
d InputDays 3
Walking it thru debug, with parm values '/home' and '3', InputDir
shows this:
> EVAL InputDir
INPUTDIR =
....5...10...15...20...25...30...35...40...45...50...55...60
1 '/home 3 '
<<SNIP>>
<<SNIP>> I've changed InputDir to be as small as 10 (which won't
work in practice) but I still get the combined values being passed
in together.
<<SNIP>>
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.