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



From page 397 ILE reference manual(sc092508)

Parsing Program Names on a Call.

Program names are specified in factor 2 of a CALL operation or as the
parameter of the EXTPGM keyword on a prototype. If you specify the
library name, it must be immediately followed by a slash and then the
program name (for example, 'LIB/PROG'.). If a library is not specified,
the library list is used to find the program. *CURLIB is not supported.
Note the following rules: v The total length of a literal, including the
slash, cannot exceed 12 characters. v The total length of the non-blank
data in a field or named constant, including the slash, cannot exceed 21
characters. v If either the program or the library name exceeds 10
characters, it is truncated to 10 characters. /FREE // The following
calls ProcName with the 3 // parameters CharField, 7, and Field2:
ProcName (CharField: 7: Field2); // If you need to specify operation
extenders, you must also // specify the CALLP operation code: CALLP(e)
ProcName (CharField: 7: Field2); /END-FREE Figure 150. Sample of CALLP
operation


Regards,
Pat Landrum
Senior Programmer/Analyst
Hanover County Public Schools
200 Berkley Street
Ashland, VA 23005
Email: plandrum@xxxxxxx
Phone: 804-365-4658 Fax: 804-365-4628
Never trust a computer you can't throw out a window - Steve Wozniak

Notice: This message or any accompanying documents may contain
confidential or privileged information of Hanover County Public Schools.
If you are not the intended recipient, disclosure, copying or
distribution is strictly prohibited by state and federal law. If you
received this message in error, please notify the sender as soon as
possible.



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jon Paris
Sent: Thursday, February 26, 2009 12:15 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Problem with duplicated program names


On 26-Feb-09, at 10:42 AM, rpg400-l-request@xxxxxxxxxxxx wrote:

hi Jon,

I don't follow that... why do you say it doesn't support library
resolution?

Hi Scott,

Originally I thought it did support it - in fact I expected this to
"work":

D Prog pr extpgm(name)

D name s 20 Inz('AA NOTFOUNDXX')

/free
prog();
*inlr = *on;

I expected a failure because there is no library NOTFOUNDXX. But in
fact it resolves via the library list and finds a copy of 'AA' that way.

I couldn't find anything in the manual to indicate that anything other
than a program name could be used on the proto.

Jon Paris

www.Partner400.com
www.SystemiDeveloper.com



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.