|
Thank you Larry! -----Original Message----- From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Larry Kleinman Sent: Thursday, March 15, 2007 12:12 PM To: Web Enabling the AS400 / iSeries Subject: Re: [WEB400] Net.data calls RPG At the point that you want to call the RPG pgm, insert this line @GetSearchStringName ($(Customer), $(ProductType), $(VDComp), $(VDItemN), $(IncludeProspect), $(IncludeLapse), $(SortBy), ppERRMSG, ppRTRN, SQL) Here is the routine that calls the program and passes the parms %{ ----------------------------------------------------- Call RPG to create SQL needed to find licenses ----------------------------------------------------- %} %FUNCTION(DTW_directcall) GetSearchStringName (in char(6) ppCustomer, char(6) ppProductTupe, char(1) ppComp, char(6) ppItemN, char(1) ppProspect, char(1) ppLapse, char(22) ppSortBy, inout char(100) ppERRMSG, char(1) ppRTRN, char(800) searchstring ) { %exec { /QSYS.LIB/KAPPP.LIB/LCR701.PGM %} %} Larry Kleinman Kleinman Associates, Inc. 212-949-6469 203-255-4100 "Don Cavaiani" <dcavaiani@amereq uip.com> To Sent by: <web400@xxxxxxxxxxxx> web400-bounces@mi cc drange.com Subject [WEB400] Net.data calls RPG 03/15/2007 12:52 PM Please respond to Web Enabling the AS400 / iSeries <web400@midrange. com> Does someone have a simple example of how to call an RPG (from the appropriate library, etc.) from a Net.Data macro? The rpg will edit data entered. Don F. Cavaiani IT Manager Amerequip Corp. 920-894-7063 'Treat every person with kindness and respect, even those who are rude to you. Remember that you show compassion to others not because of who they are but because of who you are.'--Andrew T. Somers "When faced with the choice of being 'right' or being 'kind', choose the kind option every time." -- This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/web400 or email: WEB400-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
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.