Try using QCMDEXC to call your variable command.
Sr. Programmer Analyst
IBM -e(logo) server Certified Systems Exper - iSeries Technical Solutions V5R2
IBM Certified Specialist- e(logo) server i5Series Technical Solutions Designer V5R3
IBM Certified Specialist- e(logo)server i5Series Technical Solutions Implementer V5R3
----- Original Message ----
From: David Turnidge <daveturnidge@xxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Sent: Thursday, October 11, 2007 2:43:44 PM
Subject: Calling variable commands from CL
I have taken the boilerplate UPS monitor program offered by IBM, modified by
"A. Borick" and further modified by myself with ideas from TAA
TAA has 4 exit programs, and I have modified the idea for my own purposes.
One problem I have run into is passing parameters. I don't want to have to
have parameters in the controlling data area. There is a program that I call
that has a parameter that will contain "BEFORE" and "AFTER".
I came up with the bright idea that I would change from "programs" to
"commands". So I modified the line, and immediately ran into the problem
that it couldn't find library &LIBRARY, and by extension, couldn't find the
Is there a way to call a command using a variable?
If not, I spoz I'll have to split the program up and have one for before and
another for after...
This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact