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



No need to do that... in fact I think it'd make the problem worse... just
doing
SBMJOB CMD( call pgm (&a &b &c))
where &c is dcl *char 9999
removes all the junk added on...

On Friday 08 March 2002 15:17, Ulrich, Kent wrote:
> I handle SBMJOB in these cases by placing quotes around all strings at
> their full declared length.
> Here is a snipet of my typical SBMJOB command string creation.  I then use
> QCMDEXC to execute it.
>  RQSDTA(''CALL PRPPRC PARM(+
>  ''''' *CAT &UNAME      *CAT ''''' +
>  ''''' *CAT &UWSID      *CAT ''''' +
>  ''''' *CAT &GROUP      *CAT ''''' +
>
>
> -----Original Message-----
> From: Brendan Bispham [mailto:midrangel@black-and-blue.com]
> Sent: Friday, March 08, 2002 9:47 AM
> To: c400-l@midrange.com
> Subject: Re: [C400-L] CMD parms
>
> On Friday 08 March 2002 13:08, Ulrich, Kent wrote:
> > String argements coming in from a command or a CL program will have a
> > length equal to the declared length in the command or CL program with no
> > null terminator.
>
> ie, in my case they're all 9999
> However I have debugged the CL and found that's the cause... Although I
> always thought if the PARM length = the DCL length then you dont get this
> problem. Looking at the archives it seems you definitly dont get it with
> SBMJOB, but I'll have to look into this furhter...
>
> Thanks,
> _______________________________________________
> This is the C programming iSeries / AS400 (C400-L) mailing list
> To post a message email: C400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/c400-l
> or email: C400-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/c400-l.
> _______________________________________________
> This is the C programming iSeries / AS400 (C400-L) mailing list
> To post a message email: C400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/c400-l
> or email: C400-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/c400-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.