|
"Shrader, Patrick" wrote: > ... > Code (V4R5): > D period uds dtaara(PROCYR) > D cmonth 6s 0 > ... > Data area definition: > Display Data Area > System: > Data area . . . . . . . : PROCYR > Library . . . . . . . : FILLIB > Type . . . . . . . . . : *DEC > Length . . . . . . . . : 6 0 > Text . . . . . . . . . : Processing Year and Month > Value . . . . . . . . . : 200312 > Patrick, by putting the DTAARA keyword on the DS line, you've defined it as a character type. Put the dtaara keyword on the numeric variable itself. You can't code the U since it's not a DS, so you'll have to read and write it yourself using IN and OUT. D cmonth s 6s 0 dtaara(PROCYR) * If you just want to read the value: c IN cmonth * If you also want to change the value: c *LOCK IN cmonth .... c OUT cmonth
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.