|
-----Original Message-----to
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-
bounces@xxxxxxxxxxxx] On Behalf Of sjl
Sent: Tuesday, June 16, 2009 9:38 AM
To: midrange-l@xxxxxxxxxxxx
Subject: PMTCTL question
All -
IMO, IBM's documentation is severely lacking when it comes to Command
creation. I have created a command (see source below) that will be used
update the Date and Software Protection Code in the QJDF data area.displays
When prompting the command, and if ACTION is changed to *UPDATE, it
the EXPDATE and BOMBCODE parms.list
Question:
Is it possible to make EXPDATE and BOMBCODE mandatory if they are being
displayed?
- sjl
CMD PROMPT('Update QJDF Data Area')
/* Data Area Library */
PARM KWD(DTAARALIB) TYPE(*NAME) DFT(*LIBL) +
SPCVAL((*LIBL) (*ALLUSR)) MAX(1) +
PROMPT('Data Area Library name:')
/* *UPDATE = Show EXPDATE and BOMBCODE parms *
PARM KWD(ACTION) TYPE(*CHAR) LEN(7) RSTD(*YES) +
DFT(*PRINT) SPCVAL((*PRINT 0) (*UPDATE +
1)) PROMPT('Update Data Area?')
PARM KWD(EXPDATE) TYPE(*CHAR) LEN(6) +
PMTCTL(DATECODE) PROMPT('Software +
Expiration Date')
PARM KWD(BOMBCODE) TYPE(*CHAR) LEN(6) +
CASE(*MIXED) PMTCTL(DATECODE) +
PROMPT('Software Security Code')
DATECODE: PMTCTL CTL(ACTION) COND((*EQ 1))
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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 [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.