Hello, I am fairly new to natural and have a question.
I currently have a file stored on my mainframe that is essentially a list of vendors and contains information such as status country and name. i currently have a state listed as ‘md’ and I want it written out as ‘maryland’ for all vendors that have ‘md’. Is there some code that already exists that I would be able to use to help me get started. I am looking to just write an ad hoc that will take care of this problem for all of the records.
EXAMINE #abbr (*) for record-value giving index #index
#longform (#index) then has your long form.
If this is a large file, please post a note to this effect. the code can be written a bit more efficiently using a REDEFINE of #abbr (*) into a string and EXAMINE’ing the string.