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



Okay, I think it was showing up in the exported-symbols list and I was looking at the bottom (they're the last procedures in source) instead of alphabetically. But my RPG program is still giving me an RPG7030 message for the procedure. So instead of why the import to the program missed, I went to the module and so on.
(Sorry folks)

So I'll just look some more for why the RPG can't recognize it still..

Thanks




Alan Cassidy
Senior Developer
Hospital Physician Partners
954-693-0000 ext. 3433 - Direct phone
786-380-9236 - Mobile phone
acassidy@xxxxxxxxxxxxxx<mailto:acassidy@xxxxxxxxxxxxxx>
www.hppartners.com<http://www.hppartners.com>

[HPP Logo FINAL with name-tag-logo-TM]

From: Alan Cassidy
Sent: Tuesday, August 26, 2014 11:36 AM
To: RPG programming on the IBM i (AS/400 and iSeries)
Cc: Alan Cassidy
Subject: RE: Exported Procedures not showing up in DSPMOD but show as exported in DSPSRVPGM


Thanks Buck, Birgitta, I use the same technique, including in this case, if I understood you correctly.

In both the module source IFSTEXT_M and in the RPG program that wants to use these functions, I have:



/COPY QRPGLESRC,IFSTEXT_H



When I compile the RPG program, I tell it to use the binding directory ERABNDDIR, which includes the service program IFSTEXT_S.



CRTBNDRPG PGM( &&O/&&N ) +

SRCFILE( &&L/&&F ) SRCMBR( &&N ) +

DFTACTGRP(*NO) ACTGRP( *CALLER ) BNDDIR( ERABNDDIR ) +

OPTION(*NODEBUGIO) DBGVIEW(*LIST) +

REPLACE(*YES)




Binding Directory: ERABNDDIR Library: ALAN
-------Creation------
Object Type Library Activation Date Time
ERRNO_S *SRVPGM *LIBL *DEFER 07/01/14 09:10:13
IFSTEXT_S *SRVPGM *LIBL *DEFER 08/26/14 11:00:04
ERAPREPS *SRVPGM *LIBL *DEFER 08/20/14 16:04:32

And yes, Birgitta, the procedures are listed in the service program binder language:
EXPORT SYMBOL( PurgeOldFiles )
EXPORT SYMBOL( PurgeOldFile )

I think the problem is in compiling the module, as in it's not recognizing the EXPORT keyword for some reason:

dcl-proc PurgeOldFiles export ;
dcl-PI PurgeOldFiles int(10) ;
pm_OlddirPath pointer value options( *string ) ;
pm_NewDirPath pointer value options( *string ) ;
DropDAte date ;
end-PI ;

dcl-proc PurgeOldFile export ;
dcl-PI PurgeOldFile int(10) ;
sharedta char( 1024 ) ;
pm_OlddirPath pointer value options( *string ) ;
EntryName char( 128 ) ;
end-PI ;



Alan Cassidy
Senior Developer
Hospital Physician Partners
954-693-0000 ext. 3433 - Direct phone
786-380-9236 - Mobile phone
acassidy@xxxxxxxxxxxxxx<mailto:acassidy@xxxxxxxxxxxxxx>
www.hppartners.com<http://www.hppartners.com>

[HPP Logo FINAL with name-tag-logo-TM]


--------------------------------------------------------------------------------
Confidentiality Notice: This email may contain confidential information or information covered under the Privacy Act, 5 USC 552(a), and/or the Health Insurance Portability and Accountability Act (PL 104-191) and its various implementing regulations and must be protected in accordance with those provisions. It contains information that is legally privileged, confidential or otherwise protected from use or disclosure. This e-mail message, including any attachments, is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. You, the recipient, are obligated to maintain it in a safe, secure and confidential manner. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Thank you.
--------------------------------------------------------------------------------



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.