Making a macro in AS/400

40 pts.
Tags:
AS/400
AS/400 macros
Macros
How to make a macro in AS/400?

Software/Hardware used:
AS 400

Answer Wiki

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

I’m not sure what you are trying to accomplish.
I believe what you would want to do is create a CMD.

—————
Perhaps you are looking for instructions on Macro on Client Access Terminal Emulator or Rumba Terminal Emulator — keystroke macro’s for the screen????
Phil

_______________________

If you are referring to iSeries access for windows, just click on help then procedures. There is an entire section on macros/scripts.
_______________________

If you are using reflaction to connect AS400…there are option for MACRO in top menu.

Click on start recording and put all the command you want to run when you signon..your AS400
like wrkactjob
chgmsgq qsysopr

Thanks

Ashish

Discuss This Question: 14  Replies

 
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.
  • chenthil
    if you are using client access then you will be able to see a Red play button by clicking that you can record your macros in macro file format or VB script format once you have clicked the Red Play button from the iseries access it will start record the macros , until you click the Red stop button. recorded macros will be stored in the below path C:Program FilesIBMClient AccessEmulatorPrivate ( it will be stored as .TXT file ) .
    480 pointsBadges:
    report
  • pdraebel
    If you refer to MACRO AS400 as a way to accomplish/call several tasks you should create a CMD. For example I use a command "MORNING" to check up on my iSeries LPAS's first thing in the morning and that runs a CL program that takes me through several system Commands. Peter
    6,160 pointsBadges:
    report
  • Splitgurl
    Hi, I use AS400, I know how to create macro, but the problem is, nobody here knows how to delete them? I try deleting the .txt from there: C:Program FilesIBMClient AccessEmulatorPrivate ( it will be stored as .TXT file ) but they still are in my AS400 !! Anybody knows how to delete old macro? Thank you very much!!
    10 pointsBadges:
    report
  • pdraebel
    I believe you are referring to the MACRO still being called from your session. If so go to File-Preferences and select Macro/Script. There you can select a blank for the Macro that is automatically performed when you start the session.
    6,160 pointsBadges:
    report
  • MacAttack
    I'm trying to run a macro within a macro from my text.mac file. I tried various syntax with no avail. Can someone help out? Also, if there is reference for all the Macro commands that would be really helpful too.
    40 pointsBadges:
    report
  • Michael Tidmarsh
    Welcome to ITKE MacAttack! The best idea is to start a new question so our experts can try to help you.

    For more information on how our community works, check out our FAQ.
    47,345 pointsBadges:
    report
  • ToddN2000
    Hi MacAttack, I do not think you can run a macro within a macro. I may be wrong but I’ll have to do some digging on my own. Sounds interesting. What type of application are you thinking of the using it in? We do not use a lot of macros here mainly because of security problems. We had a lot users creating macros for their sign on. Some of theses were PC that were shared on the shop floor .When their password was due to be changed their macros no longer worked.
    49,660 pointsBadges:
    report
  • TomLiotta
    With iSeries Access macro language, the 'Help' describes how to nest macros. If VB is used, then external VB scripts (i.e., other VB "macros") can be called the same way VB has always done it. In that case, it's a general VB question and not a "macro" question. . And if it isn't iSeries Access, then it completely depends on what the product is. Without knowing the product, there is no way to answer. . AS/400s don't have "macros" at all except for maybe C compiler 'macros' or Net.Data 'macros' or similar. We have no definition for "AS/400 macros" for the question yet. There is no good answer possible. . Tom
    125,585 pointsBadges:
    report
  • Chelebarry
    Hello all, I want to now if there is a command when creating a macro using VBScript to:
    - show and give the corresponding value in a determine coordinate in the AS400 screen.
    I want to do the above to use a logical formula to check that coordinate and it is let say blank to execute a roll-up.
    80 pointsBadges:
    report
  • TheRealRaven
    What "coordinate" is the macro supposed to "determine"? How will the macro knew which "coordinate" it's supposed to be checking?

    But your question doesn't quite fit here. You should create your own question rather than trying to change the subject of an existing thread.
    18,995 pointsBadges:
    report
  • CharlieBrowne

    You can only get the coordinates within a program that is setup to return the cursor position when an action is taken to read the screen

    55,540 pointsBadges:
    report
  • TheRealRaven
    But the "action" can be as simple as calling the Get Cursor Address (QsnGetCsrAdr) API. It's not necessary actually to issue a READ nor even a WRITE.

    Of course, that API isn't something that would usually be thought of as one used in a "macro". But I'm still not sure what "macro" means here.
    18,995 pointsBadges:
    report
  • Chelebarry
    Splitgurl have you tried elimination the .Mac extension file?

    Thanks TheRealRaven. Your reply seems interesting. Have you happened to have used the code previously and to do what exactly?
    80 pointsBadges:
    report
  • Chelebarry
    TheRealRaven...I used the GetText action and made it check text in from a certain position with a certain length of characters, if text extracted did not match my condition I made do a certain action.  I am planning to using your action.
    80 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.

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

Following

Share this item with your network: