MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » August 2012

Re: chgdtaara command



fixed

I've seen a upddtaara

CLP source
PGM PARM(&DTAARA)
DCL VAR(&DTAARA) TYPE(*CHAR) LEN(20)
DCL VAR(&DTAOBJ) TYPE(*CHAR) LEN(10) /* Object +
file containing data area. */
DCL VAR(&DTALIB) TYPE(*CHAR) LEN(10) /* Library
containing data area. */
DCL VAR(&DTADATA) TYPE(*CHAR) LEN(512)
CHGVAR VAR(&DTAOBJ) VALUE(%SST(&DTAARA 1 10))
CHGVAR VAR(&DTALIB) VALUE(%SST(&DTAARA 11 10))
RTVDTAARA DTAARA(&DTALIB/&DTAOBJ) RTNVAR(&DTADATA)
? CHGDTAARA DTAARA(&DTALIB/&DTAOBJ) +
??VALUE(&DTADATA)
MONMSG MSGID(CPF0000)

CMD source:
CMD PROMPT('Update a data area')
PARM KWD(DTAARA) TYPE(TDTAARA) MIN(1) FILE(*IN) +
PROMPT('Name of data area')
TDTAARA: QUAL TYPE(*NAME) LEN(10) EXPR(*YES)
QUAL TYPE(*NAME) LEN(10) DFT(*LIBL) +
SPCVAL((*LIBL) (*CURLIB)) EXPR(*YES) +
PROMPT('Library')


Rob Berendt





Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot 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 here. If you have questions about this, please contact