"RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxx> wrote on 11/16/2017 08:29:20
AM:
This always works in my programs:

RTVOBJD OBJ(*LIBL/XYZ)
OBJTYPE(*FILE)
RTNLIB(&RTNLIB)


I agree, in CL I use that. In RPG I use the following.

D IBMAPI_RtvObjDesc...
D PR ExtPgm('QUSROBJD')
D ObjDscInfo LikeDS(QUSD0400)
Options(*Varsize)
D ObjDscInfL 10i 0 Const
D ObjDscFmt 8a Const
D ObjDscName 20a Const
D ObjDscType 10a Const
D ObjDscErrC LikeDS(ApiErrC)
D Options(*Nopass: *Varsize)

D ObjDscAspC LikeDS(QUSRASPC)
Options(*Nopass)


Sincerely,

Dave Clark

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 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].