10 pts.
 iSeries Access Macro to run from a program.
I think I've asked the same question some months ago but didn't get any answer and couldn't be able to find one myself.

The issue is: i have an iseries access macro that i run every day, but I do it from the Play button in the access menu.

I would like to put this macro in a common directory (done) and be able to call it from a program in an operators menu.  This last part is my problem.  I have the macro file in the correct directory accessible by any iSeies session but I don't know how to call it from an iSeries program.

I hope this time my question goes through and some kind guru gives me the magical solution.

Thanks.  Marcos.

 

 

 

 



Software/Hardware used:
iSeries V5R4M0
ASKED: January 24, 2011  2:38 AM
UPDATED: January 25, 2011  12:28 AM

Answer Wiki:
I have no idea if it will work or not but have you tried STRPCCMD activate the macro. "STRPCCMD PCCMD('START C:DOWNLOADEXCElTEST.xls') pause(*no) (*NO) " will open an exceltest in excel. You might need to use rundll with correct structure to open a macro.There are sites available to see how to use both. you might come up with a solution that way. If so please post it.
Last Wiki Answer Submitted:  January 24, 2011  3:12 pm  by  Bigmac46   1,000 pts.
All Answer Wiki Contributors:  Bigmac46   1,000 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

If you don’t have the iSeries Access Programmer’s Toolkit installed on your PC, you’ll need to install it. Then, open the Programmer’s Toolkit (through Windows Start menu), and expand Emulation to access the C/C++ APIs.topic.

You’ll want to learn PC programming to use the Emulator High Level Language API (EHLLAPI). The API includes function HA_START_PLAYING_MACRO, ‘Start playing macro’, that you will probably want to use. You would then probably use STRPCCMD to call the C/C++ program that you wrote for your PC.

I don’t know of any examples unfortunately.

I suspect that there are far easier ways of doing whatever you need done.

Tom

 110,135 pts.