iSeries Access Macro to run from a program.

10 pts.
Tags:
iSeries Access
iSeries macros
iseries v5r4
Macros
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

I have no idea if it will work or not but have you tried STRPCCMD activate the macro. “STRPCCMD PCCMD(‘START C:\DOWNLOAD\EXCElTEST.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.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    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
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following