This page is a discussion on the mentioned topic. Most of the answers are in their original posted form, including any technical/spelling/grammatical errors. No guarantees are expressed or implied. :-)
Comments, corrections, concerns about this tip?
How do I define this same statement in a D-spec. I tried the following but X
gets define as an array. I only want X to have the same length a 1 element
of the array CTN.
0277.00 D X S LIKE(CTN) DIM(1)
Answer(s):
D X S LIKE(Ctn)
The above is all you need. X will be defined as a field similar to one
element of CTN.
Remove the DIM(1) from your definition. That's what's causing X to be
defined as an array.