Definition not found for symbol ‘CRTUSRSPC’

30 pts.
Tags:
CRTBNDRPG
CRTUSRSPC
V5R4
I am writing a program to use an API, and it won’t compile due to having trouble with the User Space.

I am doing a CRTBNDRPG under V5R4.

The error I am getting is “[B style="mso-bidi-font-weight: normal;">Definition not found for symbol 'CRTUSRSPC'.” (CPD5D02)

-          The *CMD CRTUSRSPC is in my *LIBL

-          I have it Prototyped:

o   /COPY QCPYLESRC,CRTUSRSPCP

o   The member in QCPYLESRC looks like this:

§   DCRTUSRSPC        PR              *          

Software/Hardware used:
V5R4

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    Prototyping simply tells the compiler how to compile the interface, often by way of copying source from a source member. If the source references an external name such as a procedure name from a different module, you have to tell the compiler where to find that module. If you are using CRTBNDRPG to do the compile, the only way that I know of to tell the compiler where the module is is through a reference to a binding directory that contains an entry for the module (or for a service program that includes the module). The binding directory can be named either with a BNDDIR() keyword on an H-spec or through the BNDDIR() parameter of the CRTRPGPGM command. Tom
    125,585 pointsBadges:
    report
  • Ecgrantb
    Got it, thank you. I was missing the EXPORT.
    30 pointsBadges:
    report
  • TomLiotta
    For others who might read this, EXPORT is used on a procedure definition to make the procedure visible to other modules that might be bound together into a single program. An EXPORTed procedure in ModuleB may be called from inside ModuleA if the two modules are bound together. Without the EXPORT, that procedure would only be available to other procedures inside of ModuleB. Tom
    125,585 pointsBadges:
    report
  • Ecgrantb
    Yep, right on.
    30 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following