|
Hi Jaime I've seen this done in a number of different ways in the past. Where the table only contains a program name (e.g. column PGMFLD) then the RPG program has just used CALL PGMFLD to call the program. Alternatively if the table holds the complete command string (e.g. column CMDSTR is "CALL PGM001 ('ABC' 123 'DEF')") then a call to the system APIs QCMDEXC or QCAPCMD passing the CMDSTR value is the way its been done. All the best Jonathan -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jaime Lopez Ortega Sent: 03 August 2006 09:48 To: rpg400-l@xxxxxxxxxxxx Subject: How to call a program with parameters from a string? Hi, I try to do the following. Iwant to create a table that would be used for filling menus. In the first field of the table I would have the index, something like XXYYZZ that it tells the programm where to show the menu point. In the second field I would have the text that should be showed in the menu. In the third field something like what to do it this option is choosen: normally would be a call to program with some parameters that should be passed from the main program where this table will be worked. What should be the best form of performing the calls? Your help is here needed. Jaime -- This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
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.