Newsletters   Subscriptions  Forums  Store   Career  Media Kit  About Us  Contact  Search   Home 
fhg
Volume 5, Number 33 -- August 31, 2005

Let's See Those Command Parameters


Hey, Ted:


I have a CL program that builds a command in a variable, which it passes to QCMDEXC for execution. If I run the program in a job that logs CL program messages, the job log contains a nearly useless message that tells me that the "CALL command contains parameters." Is there a way for me to make the system show me the CL command that is being executed?

--Mitch


I share your frustration, Mitch. I know of nothing in the operating system that would make the job log show the command that is being executed. If you have access to the source code, you can add something to display the contents of the variable. Here's an example.

dcl &cmd     *char 80                          
dcl &cmdlen  *dec (15 5) value(80)             

sndpgmmsg msg('CMD:' *bcat &cmd) topgmq(*same) 
call qcmdexc (&cmd &cmdlen)                    

I've used the Send Program Message (SNDPGMMSG) command to send a message to the program's message queue. The job log will contain a message that shows you the value of the &CMD variable just before QCMDEXC gets hold of it. The job log will probably show you the variable's value twice--once in the MSG parameter of SNDPGMMSG and then again as the contents of the message, which is redundant, but better than nothing at all.

--Ted


Sponsored By
T.L. ASHFORD

BARCODE400 by T.L. Ashford is the easiest
and fastest way to create and print Compliance
Labels directly from the AS/400 and iSeries.

Ashford's comprehensive library of Compliance formats is available to Barcode400 users. AIAG labels for Ford and Motorcraft, GM, and many more are available. BARCODE400 is backed by the best Technical Support Team in the industry.

FREE Guide to Bar Code Labeling

www.tlashford.com or call 800.541.4893


Technical Editors: Howard Arner, Joe Hertvik, Ted Holt,
Shannon O'Donnell, Kevin Vandever
Contributing Technical Editors: Joel Cochran, Wayne O. Evans, Raymond Everhart,
Bruce Guetzkow, Marc Logemann, David Morris
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.


THIS ISSUE
SPONSORED BY:

T.L. Ashford
Advanced Systems Concepts
COMMON


Four Hundred Guru

BACK ISSUES

TABLE OF
CONTENTS
Let's See Those Command Parameters

Submit a Prompted Command to Batch

Admin Alert: Changing Your Mind When Loading Group PTFs


The Four Hundred
Taking the Pulse of the iSeries Base

Gartner Says Server Market Warmed Up Some More in Q2

IBM's Business Intelligence Plan Focuses on Partners, Middleware

The Source of All Good Bits

Four Hundred Stuff
Trustgenix and IdentityForge Put iSeries, zSeries at Center of SSO

IBM Buoys Workplace Development with New IDE

CabledSoft Delivers Graphical Cross Reference Tool for OS/400

DataMystic Provides iSeries Data Transformation Services

Four Hundred Monitor


Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved.
Guild Companies, Inc. (formerly Midrange Server), 50 Park Terrace East, Suite 8F, New York, NY 10034
Privacy Statement