Yeah, a nice set of examples would be helpful. I'll try what you suggest about variables, too.

Of course, the real answer is to create a command, right?

If you put up an FAQ and my samples would be useful, feel free or let me know.

;-)

At 05:13 PM 11/16/2005, you wrote:

midrange-l-request@xxxxxxxxxxxx wrote:

>   4. RE: RE: SBMJOB is trimming the tailing blanks (Vernon Hamberg)
>
>OK, Tom. help me here - I created a CL with a
>50-character variable. Then I used the following to submit it:
>
>SBMJOB CMD(CALL PGM(VHAMBERGO/TEST) PARM('36
>characters45678901234567890123456    '))

Vern:

Now try all of these again EXCEPT use variables rather than quoted strings.

<guesswork>
By using variables, you force a kind of expression evaluation. When you simply use explicitly quoted strings, I imagine the quote marks are used directly as markers. However, variables have no explicit quotes.

Quotes still must be added by internal SBMJOB processing in its CPP under many circumstances, though, for example when the variable value has embedded spaces. I've never looked to see if quotes are _always_ added, and embedded quotes in variable values would complicate it all.

The trouble seems only when the command analyzer must make assumptions about the formatting of the request message. If you remove ambiguity, things work _fairly_ well. Unfortunately, that's when the biggest value of the CMD() parm starts disappearing.

In the cases where you DCL'd a *CHAR(50) and passed a quoted *CHAR(40) with trailing blanks, the example with garbage is pretty well understood I think.

The single _extra_ blank that kept appearing...??? Well, somebody with far more knowledge than I have would need to explain. I'm going almost totally from guesswork out of experience.
</guesswork>

Maybe eventually we'll work out a nice, neat tutorial (FAQ) that clearly describes all relevant behavior.

Tom Liotta

--
Tom Liotta
The PowerTech Group, Inc.
19426 68th Avenue South
Kent, WA 98032
Phone  253-872-7788 x313
Fax    253-872-7904
http://www.powertech.com


__________________________________________________________________
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp
--
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.