fhg
Volume 10, Number 32 -- October 20, 2010

How Do I Record a PC5250 Macro?

Published: October 20, 2010

Hey, Joe:

I have some PC5250 users who every month need to execute the same commands from their green screen sessions to launch queries, set configuration values, etc. How do I teach them to create macros so they can spend more time analyzing data and less time creating it?

--Bob


Macros are extremely easy to create on a PC5250 screen. Here's how to do it using the Personal Communications program (PC5250) that comes with iSeries Access for Windows V5R4Mx.

PC5250 macro generation is controlled through four buttons on the PC5250 toolbar: Record, Stop, Play, and Quit. Here's what these buttons look like.



If you can't see these macro control buttons on your screen, your session probably isn't displaying the PC5250 toolbar. To enable the toolbar to display on a PC5250 screen, click on View from the PC5250 menu bar and check the Toolbar selection. This will cause the toolbar to appear.

To record your macro, sign on to a green screen session and click the Record button on the toolbar. This will cause the following Record Macro/Script As panel to show up.



Enter a name for the macro file that you want to capture your commands to. There are a few other parameters you may also want to change for this file. By default, macro scripts are recorded in VBScript, but you can record the commands in a macro file by turning on the Macro File radio button in the Record Format section of the screen.

Also consider whether you want to record the actual user wait time between executing commands along with the i/OS commands (the default setting). If you record the wait time, on execution the macro will always wait between executing commands for the same number of seconds that you originally waited when the command was recorded. This means that the wait time between commands will also be replayed each time you replay the macro, possibly slowing down your users.

You can easily change the Record User Wait Time setting to None or Fixed by clicking on its corresponding radio button on the screen. Changing it to None will skip recording the wait time between commands, but be warned that this setting can cause problems when actually executing the commands. If you record the commands with no wait time, the next command may fire off before your iSeries, System i, or Power i machine has finished processing the previous command and the commands may not execute properly in sequence. Changing Record User Wait Time to Fixed changes the wait time between commands to a standard 25 ms after each command is entered. However, if your partition is running slowly, this may not provide enough time to allow each command to finish.

Your best bet may be to record the commands with the Actual wait time radio button selected and then make sure that the wait time between commands is sufficient enough to allow your machine to finish processing the commands. If you find that your wait times are either too fast or too slow, you can edit the macro later on.

After you input the macro name and adjust any parameters, simply start typing in your commands and PC5250 will record each command and its corresponding wait time to your macro. When you finish capturing all the commands, click on the toolbar Stop button and your macro will finish recording.

Click on the toolbar Play button to play the macro again. The following Play Macro/Script screen will appear. Select the macro you want to play, click the OK button, and the macro will execute and replay all its recorded keystrokes.



If you later want to edit one of your macros to change the wait values or add other information, you can edit a macro by clicking Edit, Preferences, Macro/Script from the PC5250 menu bar.



This will bring up the following Macro/Script Setup window. Select the macro that you want to edit and then click on the Customize button.



This will bring you to the following Customize Macro/Script screen where you can change your macro commands as needed.



You'll need to be familiar with VB Script to make changes, but once the changes are made, they will execute the next time you run your macro.

And that's all there is to creating, executing, and changing macros.

HTH

--Joe




                     Post this story to del.icio.us
               Post this story to Digg
    Post this story to Slashdot


Sponsored By
inFORM DECISIONS

Paperless Saves: NEW iScan and iDocs

Nothing against paper and preprinted forms, but they can really suck an organization's money down the drain.

You can deliver vital reports, checks, forms and scanned documents FASTER and save significant time and money with inFORM's paperless and web-based document management solutions.

The affordable iScan and iDocs Suite eliminates the cost of paper from AP, customer service, sales and more for fast ROI. Create and immediately distribute critical business documents, without the expense. In no time you can:

                  · Simplify batch scanning & indexing of contracts, POs, invoices, etc

                  · Generate electronic forms, checks, reports, PDFs and more
                     directly from System i spool files

                  · Intelligently burst, format, sort, bundle and distribute
                     via email, fax, printer and/or web repository

                  · Provide immediate and secure browser-based access to
                     e-documents from anywhere in the world, 24x7

Go paperless today - affordably - with iDocs and iScan.
Click here to see the iScan VIDEO DEMO & download free iDocs white papers!

Paperless solutions by inFORM Decisions include iDocs, iForm, iPDF, iMail, iFax, SmartRouter, iCheck, CheckSecure, Positive Pay, iScan and the iView web-based document storage and retrieval system.


Senior Technical Editor: Ted Holt
Technical Editor: Joe Hertvik
Contributing Technical Editors: Erwin Earley, Brian Kelly, Michael Sansoterra
Publisher and Advertising Director: Jenny Thomas
Advertising Sales Representative: Kim Reed
Contact the Editors: To contact anyone on the IT Jungle Team
Go to our contacts page and send us a message.

Sponsored Links

Help/Systems:  FREE Webinar: Manage your temporary storage and IFS. Oct. 21, 9 a.m. CST
Vision Solutions:  Leaders Have Vision...And Vision Has Leaders! FREE White Papers!
COMMON:  Join us at the 2011 IT Executive Conference, May 1-3, in Minneapolis, MN


 

IT Jungle Store Top Book Picks

BACK IN STOCK: Easy Steps to Internet Programming for System i: List Price, $49.95

The iSeries Express Web Implementer's Guide: List Price, $49.95
The iSeries Pocket Database Guide: List Price, $59
The iSeries Pocket SQL Guide: List Price, $59
The iSeries Pocket WebFacing Primer: List Price, $39
Migrating to WebSphere Express for iSeries: List Price, $49
Getting Started with WebSphere Express for iSeries: List Price, $49
The All-Everything Operating System: List Price, $35
The Best Joomla! Tutorial Ever!: List Price, $19.95


 
The Four Hundred
The Hundred Thousand Plus on the Four Hundred

IBM Launches Power7-Based Cloudy Stacks

No Shortcuts to Program Conversions, OS Upgrades

Mad Dog 21/21: Any Cloud Platform You Want, As Long As It's X64

IBM Ditches Apache Harmony Java for Oracle OpenJDK

Four Hundred Stuff
ASNA Dips Its New 'Wings' Into OAR Waters

LANSA Takes a Whack at Mobile Devices with aXes

Document Capture, GUI Admin Tool Added to S4i Doc Management System

QlikTech Updates BI Product

CoralTree Delivers New GUI for Web Framework

Four Hundred Monitor
Four Hundred Monitor's
Full iSeries Events Calendar

System i PTF Guide
September 25, 2010: Volume 12, Number 39

September 18, 2010: Volume 12, Number 38

September 11, 2010: Volume 12, Number 37

September 4, 2010: Volume 12, Number 36

August 28, 2010: Volume 12, Number 35

August 21, 2010: Volume 12, Number 34

TPM at The Register
Dell's DCS is a big shiny server star

Benoit Mandelbrot, father of fractals, dies at 85

Opteron 6100 server ramp underway, says AMD

Larry Ellison to buy EMC?

IBM floats new CloudBurst stacks

Blade Network kicks RackSwitches up to 40 Gigabits

PC shipments sag below Q3 targets

Appro overclocks HF1 server for hedge funds

IBM expands Power leasing deal to Europe and Asia

Big iron makers test their metal on SAP

Intel: 2010 is not your grandfather's refresh cycle

Capgemini pushes efficiency limits in Swindon data centre

THIS ISSUE SPONSORED BY:

SEQUEL Software
Profound Logic Software
inFORM Decisions


Printer Friendly Version


TABLE OF CONTENTS
Rowing with Your OAR

Leave My Stream Files Alone, Please

How Do I Record a PC5250 Macro?

Four Hundred Guru

BACK ISSUES




 
Subscription Information:
You can unsubscribe, change your email address, or sign up for any of IT Jungle's free e-newsletters through our Web site at http://www.itjungle.com/sub/subscribe.html.

Copyright © 1996-2010 Guild Companies, Inc. All Rights Reserved.
Guild Companies, Inc., 50 Park Terrace East, Suite 8F, New York, NY 10034

Privacy Statement