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



DSPMSGD RANGE(CPD000B) shows:

                        Display Formatted Message Text
                                                            System:
DEV
Message ID . . . . . . . . . :   CPD000B
Message file . . . . . . . . :   QCPFMSG
  Library  . . . . . . . . . :     QSYS

Message . . . . :   &1 not safe for job with multiple threads.
Cause . . . . . :   The current job has more than one thread, and &1 is
a CL
  program or procedure that cannot be used safely in a job that has
multiple
  threads, because it is not an ILE program or procedure or it was
compiled
  for a release earlier than V4R3. The results may be unpredictable.
Recovery  . . . :   Recompile the program for V4R3 or a later release
using
  the Create Bound CL Program (CRTBNDCL) command or the Create CL Module
  (CRTCLMOD) command.
Technical description . . . . . . . . :   The code generated by the
Create
  Bound CL Program (CRTBNDCL) command and the Create CL Module
(CRTCLMOD)
  command for releases earlier than V4R3 and by the Create CL Program
  (CRTCLPGM) command for all versions is not threadsafe. The program
must be
  recompiled before it can be used safely in a job that has multiple
threads.

If you know that this program will only be run on one thread at a time,
use

  cmd.setThreadSafe(true);

before your cmd.run(...) call.

HTH,
Gary

> -----Original Message-----
> From: java400-l-admin@midrange.com
> [mailto:java400-l-admin@midrange.com] On Behalf Of Marc_Nothum@ept.lu
> Sent: Wednesday, January 23, 2002 2:49 AM
> To: java400-l@midrange.com
> Subject: Calling an CL-programm on V5.1
>
>
>
>
>
> Hi,
>
>
> First, thanks to Gary for the quick response to my previous problem.
>
> I use the Command-call from the toolbox to call an CL-program
> as following:
>
> import com.ibm.as400.access.*;
> AS400 sys = new AS400("localhost");
> CommandCall cmd = new CommandCall(sys);
> cmd.run("CALL PGM(GF2010BJ) PARM('U' 'D' ' ..............  ");
>
> It stops with the error message: <AS400Message (ID: CPD000B
> text: GF2010BJ not safe for job with multiple
> threads.):com.ibm.as400.access.AS400Message@5cc7ad8a>
>
> The CL-program is part of a package software and it is not
> possible for me to change it.
>
> This problem also is new on OS400 V5.1 and works on V4.4
>
> Any ideas?
>
> Marc
>
>
> _______________________________________________
> This is the Java Programming on and around the iSeries /
> AS400 (JAVA400-L) mailing list To post a message email:
> JAVA400-L@midrange.com To subscribe, unsubscribe, or change
> list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
> or email: JAVA400-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/java400-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.