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



On 2012/5/30 11:08 AM, Koester, Michael wrote:
Barbara, I was curious to see how an embedded x'7d' would impact the
result, so I stuffed one into a varying character subfield before
passing the ds. Since I'm now converting the ds string to hex before
passing it (per Chuck), it appears to have no impact on the integrity
of the data structure received by the submitted job -- the single
quote remains where I put it and does not disrupt the contents of any
other subfield.


Michael, passing the DS as a hex value avoids the problem with the quotes.

I was thinking about this code that seemed to be the winning solution (I confess that I hadn't read the entire thread yet).

Command = 'SBMJOB CMD(CALL PGM(PROVSN_NMS) PARM('''
+ NMS_OrderDetails
+ ''')) JOB(TESTING) jobq(QBATCH4)';

If NMS_OrderDetails has a quote, say ABC'DEF, the command string would look like this:

SBMJOB CMD(CALL PGM(PROVSN_NMS) PARM('ABC'DEF')) ...

And the SBMJOB would get an error due to the quote in the middle of the PARM.

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.