Focal Point
[CLOSED] IMS - Cobol

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

September 17, 2009, 02:32 PM
Enigma006
[CLOSED] IMS - Cobol
Hai all..

We are trying to report on IMS mainframe database.
It seems in IMS (cobol), sometime a field is redefined to another field and they both share same memory.

On the webfocus we use a condition to use either of those fields.
There is no problem when both are Alphanumeric or both are packed.
But at a particular situation, one is packed-decimal and other is alpha-numeric.
Conversions using PTOA etc did not help. It gives FORMAT CONVERSION ERROR. DATA EXCEPTION.

Can anyone have any suggestions please.?

Thanks..

This message has been edited. Last edited by: Kerry,


8.1.05
HTML,PDF,EXL2K, Active, All
September 17, 2009, 02:41 PM
GinnyJakes
Define your field in the master as alphanumeric, i.e. Ann. Then refer to the "Using Functions" manual to read up on the CHKPCK subroutine. That should do what you need.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
September 17, 2009, 02:56 PM
Enigma006
Thanks for the suggestion. Already tried that but did not work


8.1.05
HTML,PDF,EXL2K, Active, All
September 17, 2009, 08:32 PM
Jim Morrow
It has been a long time since I have done any IMS/DL1. But when a segment has two different layouts best practices suggest a segment type indicator. Have you tried using this as a RECTYPE in your master?


Jim Morrow
Web Focus 7.6.10 under Windows 2003
MVS 7.3.3



September 18, 2009, 02:27 PM
Enigma006
Thanks Jim.
We found the same and we are working on it now..


8.1.05
HTML,PDF,EXL2K, Active, All