|
"Wilt, Charles" wrote: > > Please excuse me but I seem to be experiencing brain fade at the moment... > ... > What's the difference between using LIKE vs. LIKEDS LIKE defines the prototype as a character field the same length as the DS. LIKEDS defines it as a DS. > Now, say you are working with an IBM API, for example Create User Space > ... > Does it matter if I use LIKE or LIKEDS here? The API is of course actually > expecting a 20 character field. It doesn't matter technically; the API will receive the data structure value either way. I'd use LIKEDS just for better documentation. > Now, let's say I want to pass the structure to my own procedure. In that > procedure > I want to access the subfields without copying the data to some other > structure, or > using a based structure. In this case, I always want LIKEDS correct? > Correct. Sounds to me like your brain wasn't faded at all ...
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.