Cursor position in a macro

1735 pts.
Tags:
AS/400
Does anyone know how to make the cursor go to the first position of the command line in a macro? Voodoo

Answer Wiki

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

This is usually either just a CR with no Line Feed, or a <ctrl>A which should do the same. Or you may be right and it is Voodoo ;-)

Discuss This Question: 4  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.

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
  • Voodoovw
    I was hoping to add this to macros so that the cursor would jump down to the command line before the rest of the macro kicks off. It would be handy in screens like WRKACTJOB.
    1,735 pointsBadges:
    report
  • hafwhit
    I wrote a macro for when compiling programs to add options to the command line from PDM and you will also need to add a Field Exit to the macro so that it clears the data after the ending string. All you need to do is press the F9 key and this bring up the last command you entered and place the cursor at the first position. Since I was adding options to my macro I just typed them and then pressed Field Exit to clear any remaining characters from a prior command. Try this and see if it works for you.
    1,145 pointsBadges:
    report
  • Yorkshireman
    You can record macros in Vb or in 'keystroke' format - use the keystroke recorder and just step through whatever you want to do, including cursor movement. Works a treat
    5,580 pointsBadges:
    report
  • Voodoovw
    I think Hafwhit's got it. The trouble is you don't always know where the cursor is going to be. The F9 seems to put you there from where ever the cursor is at. Funny, I use F9 a bazillion times a day and it never occured to me. Thanks Hafwhit, that was the Voodoo I needed.
    1,735 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