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



Object Type Length fields needs to be length 10.  The API may be seeing
"*LIBbbb*NO" where b=blank

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx]On Behalf Of rob@xxxxxxxxx
Sent: Friday, July 29, 2005 10:11 AM
To: midrange-l@xxxxxxxxxxxx
Subject: QWCLOBJL results in CPF3C31-Invalid object type


    DCL  &USRSPC      *CHAR  20  /* Qualified name of User space     */
    DCL  &FORMAT      *CHAR   8  /* User space format name           */
    DCL  &OBJNAME     *CHAR  20  /* Qualified object name            */
    DCL  &ObjType     *char   7  /* Type of object to free locks on  */
    DCL  &MBRNAME     *CHAR  10  /* Member name                      */
    DCL  &ERRORAREA   *CHAR  16  /* Error code from comm status      */
    DCL  &ERRORCODE   *CHAR   7  /* Error code from comm status      */
...
             CALL       PGM(QWCLOBJL) +
                        PARM(&USRSPC +
                             &FORMAT +
                             &OBJNAME +
                             &OBJTYPE +
                             &MBRNAME +
                             &ERRORAREA)
...
             CHGVAR     VAR(&ERRORCODE) VALUE(%SST(&ERRORAREA 9 7))
results in CPF3C31-Invalid object type

*...+....1....+....2....+....3....+....4....+....5....+....6....+....7....
 &USRSPC                  *CHAR           20       'QWCLOBJL  QTEMP     ' 
 &FORMAT                  *CHAR            8       'OBJL0100'
 &OBJNAME                 *CHAR           20       'ROB2      QSYS      '
 &OBJTYPE                 *CHAR            7       '*LIB   ' 
 &MBRNAME                 *CHAR           10       '*NONE     '
 &ERRORCODE               *CHAR            7       'CPF3C31' 
 &ERRORAREA               *CHAR           16       '        CPF3C310'
Value of &ERRORAREA in Hexadecimal 
* . . . + . . . . 1 . . . . + . 
000000100000001AC3D7C6F3C3F3F1F0

I can try this for other object types and get the same message.

Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.