Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
October 04, 2013, 06:08 AM
Jay Potter
All three worked!!! Thank You very much.
I had to make a small change to the first CTRAN. I failed to say that I am using an iSeries so I had to use EDCDIC values instead.
WebFocus 8.1.5 iSeries/Windows DB2/SQL/Access Dev Studio App Studio Maintain ReportCaster
October 04, 2013, 09:36 AM
Doug
Consider: CTRAN: Translating One Character to Another.
In FOCUS Since 1983 ~ from FOCUS to WebFOCUS. Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
October 04, 2013, 09:55 AM
Twanette
I also like CTRAN in these situations.
And because Dialogue Manager does not necessarily have a "format" like a field, you may need to dynamically determine the length of your variable. You could do something like this: -SET &TLEN = &FFCCNMB.LENGTH ; -SET &TFMT = 'A' | &TLEN ; -SET &FFCCNMB = CTRAN(&TLEN, &FFCCNMB, 39, 32, '&TFMT') ;
Merge that into Daniel's second -SET and you then have a very interesting command ;-)
WebFOCUS 8.2.06 mostly Windows Server
October 05, 2013, 01:15 PM
Danny-SRL
Twanette,
Very true. You can also do away with your second DM command: