Robert,

Beware of the command line and parameters longer than 32 characters... This is a common issue with trying to call programs from the command line.

When the CALL command is parsed, the data in the parameter fields is TRIMMED, and if the trimmed length is less than 32 bytes, then only 32 bytes get allocated to the parm value... If you want to FORCE the parameter length to be larger than 32 bytes, you really should write a command for the program, so that the OS knows how it needs to format the parameters prior to the call.

If you can't create a CMD object, then the standard recommendation is to define (for your 50a parm) a 51 byte string with your 50 byte value, and any non-blank character in the last position. This is an ugly hack, but once you understand it, the code is pretty obvious.

Still, I recommend you write a CMD for it...

Hth,
-Eric DeLong

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Robert Munday
Sent: Friday, September 16, 2011 9:07 AM
To: Midrange List
Subject: Fun With SNDDST - Epilogue


Thanks to all who responded.





When I ran the CL interactively, the SNDDST sent an e-mail. When run in
batch, it sent no e-mail. I had put in SNDMSGs to show each parm and each
step of the job stream and the parms looked fine. I also converted the
numeric 15.5s to alpha, just in case they were getting hosed in the
self-submit.



The problem with the SNDDST was solved when I rearranged my parms to put
the e-mail address (50A) as the last parm.



It's the little things.







Robert Munday

Munday Software Consultants

Montgomery, AL

on assignment in New Albany, OH
--
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.