× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 2021-06-18 1:25 p.m., Charles Wilt wrote:
All,

working with DATA-GEN using Scott's awesome YAJLDTAGEN.

Problem I have is that the DS I'm passing to YAJLDTAGEN is defined with
EXTNAME(MYFILE) alias;

So I'm seeing long names in my JSON doc, but they are in all caps.

It doesn't appear that "case=convert" is an option for DATA-GEN like it is
for DATA-INTO.


Charles, the renameprefix option might help. You could add some extra "rename" subfields to your data structure.

https://www.ibm.com/docs/en/i/7.4?topic=into-renameprefix
https://www.ibm.com/docs/en/i/7.4?topic=renameprefix-examples-option

dcl-ds myDs extname('MYLIB/MYFILE') alias qualified;
rename_CUSTOMER_ADDRESS varchar(30) inz('customer_address');
rename_CUSTOMER_NAME varchar(30) inz('customer_name');
end-ds;

data-gen myDs %data('myds.json' : 'doc=file renameprefix=rename_') ...


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.