Focal Point
Unintended Code Translation Errors

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9511040292

July 18, 2008, 07:14 PM
davedel2001
Unintended Code Translation Errors
We have FOCUS on our mainframe for many years now. About 2 wks ago focus code executed under TSO would translate the backslash "\" to a ":" causing code & filepath errors. The same code executed thru a batch program would not experience this and execute correctly. For example:
source: " T_PRM_FLG_2 /A61 = GETTOK(T_PRM_FLG_1,61,2,'\',61,'A61') ; "
run in TSO: " T_PRM_FLG_2 /A61 = GETTOK(T_PRM_FLG_1,61,2,':',61,'A61') ; "
OR
source: " THEN '/CDHR\DOWNLOADONLY\ISD40\PDFTEST' "
run in TSO: " THEN '/CDHRBig GrinOWNLOADONLY:ISD40:PDFTEST' "

What's causing this translation?? We've tried this on varios workstations using different emulators. Help. Thank you.
July 19, 2008, 07:20 AM
Jessica Bottone
What happened when you ran it on various workstations? Did they all translate to a colon or did some translate and some not? I'm going to guess they all translated.

You said the problem started 2 weeks ago? Do you know any changes that occurred around that time?

I'm really taxing my memory and could be remembering wrong, but here's something else you can look for.....

I'm going to guess there is a different profile executed when run via batch versus TSO. In the top of the program, put this: -SET &ECHO=ALL;

This will echo back all the code executed, then you can look for differences.

If you don't see anything there, get your hands on the JCL that does the batch execution as well as the script for TSO (I am assuming when you say TSO, you are referring to what I called interactive FOCUS).

On each, look for //FOCEXEC

What you'll be looking for is if the PDS libraries listed for //FOCEXEC are the same AND listed in the same order. Order is important.

Then check each of these libaries for a member called PROFILE. If you find more than one, it's the first one that it comes to that will be executed. Check the contents of PROFILE to see if anything there is causing this translation.

Good luck.

Jessica Bottone


Data Migrator 5.3, 7.1, 7.6
WebFOCUS 7.1, 7.6, 7.7
SQL Server, Oracle, DB2
Windows
July 20, 2008, 11:24 PM
Leah
Is it possible you have updated your 3270 emulator package, if you are submitting interactive on TSO, it's been a long time. As Jessica asked, what other change may have happened?


Leah
July 21, 2008, 10:28 AM
davedel2001
thanks leah. jessica's assumptions are correct. different emulators the same error occurs. Interesting note, when i bring up the offending code in TED, there's no translation errors, but when the code is executed in the active environment, the conversion occurs.

I've done some cursory &echo=all comparisons, so maybe I need get down in the trenches. Most of our code is run in batch jobs, but for ad hoc reports, i like to use the active focus environment.
July 22, 2008, 05:37 PM
davedel2001
still haven't been able to see where this is happening. there's no system or emulator changes that I am aware of. But my scope is so narrow & there's a systems pgmr looking into this, but there's been a lot of cooks in the kitchen lately & it's difficult to know what's what.. i'm still looking at how our tso/clist focus is comparing to mvs/batch focus.