Skip to main content

Debugger VS for .Net - Watch variables PIC S9 COMP

  • October 30, 2018
  • 6 replies
  • 0 views

Problem:

Variables of type PIC S9(4) COMP with binary length 2 bytes (32 bit) are displayed with 4 digits. Is it possible to change the debugger settings to show the full range of values?

Sample: Field BIO-SEGM-LGTH-USE has a value of 11156 (x'2b94'), but is displayed as 1156.


#COBOL
#EnterpriseDeveloper

6 replies

  • Author
  • Rocketeer
  • 19312 replies
  • October 30, 2018

Problem:

Variables of type PIC S9(4) COMP with binary length 2 bytes (32 bit) are displayed with 4 digits. Is it possible to change the debugger settings to show the full range of values?

Sample: Field BIO-SEGM-LGTH-USE has a value of 11156 (x'2b94'), but is displayed as 1156.


#COBOL
#EnterpriseDeveloper
Alos what version of VS?

  • Author
  • Rocketeer
  • 19312 replies
  • October 30, 2018

Problem:

Variables of type PIC S9(4) COMP with binary length 2 bytes (32 bit) are displayed with 4 digits. Is it possible to change the debugger settings to show the full range of values?

Sample: Field BIO-SEGM-LGTH-USE has a value of 11156 (x'2b94'), but is displayed as 1156.


#COBOL
#EnterpriseDeveloper
What version of product are you on? Do you have any updates applied? Is this a managed code project or a native code project? On the surface it would appear this might be a bug, since there should be no need to change settings to see all allowable values?

  • Author
  • Rocketeer
  • 19312 replies
  • October 30, 2018

Problem:

Variables of type PIC S9(4) COMP with binary length 2 bytes (32 bit) are displayed with 4 digits. Is it possible to change the debugger settings to show the full range of values?

Sample: Field BIO-SEGM-LGTH-USE has a value of 11156 (x'2b94'), but is displayed as 1156.


#COBOL
#EnterpriseDeveloper

We use Enterprise Developer Release 3.0 Patch 9 with Visual Studio 2015. The Project is a Managed Mainframe Subsystem Project running on Enterprise Server for .Net.


  • Author
  • Rocketeer
  • 19312 replies
  • October 30, 2018

Problem:

Variables of type PIC S9(4) COMP with binary length 2 bytes (32 bit) are displayed with 4 digits. Is it possible to change the debugger settings to show the full range of values?

Sample: Field BIO-SEGM-LGTH-USE has a value of 11156 (x'2b94'), but is displayed as 1156.


#COBOL
#EnterpriseDeveloper

We use Enterprise Developer Release 3.0 Patch 9 with Visual Studio 2015. The Project is a Managed Mainframe Subsystem Project running on Enterprise Server for .Net.


  • Author
  • Rocketeer
  • 19312 replies
  • October 30, 2018

Problem:

Variables of type PIC S9(4) COMP with binary length 2 bytes (32 bit) are displayed with 4 digits. Is it possible to change the debugger settings to show the full range of values?

Sample: Field BIO-SEGM-LGTH-USE has a value of 11156 (x'2b94'), but is displayed as 1156.


#COBOL
#EnterpriseDeveloper
Unfortunately I don't have an environment close to that available right now. My best advise is to open a support incident at supportline.microfocus.com. What you are describing should to the best of my knowledge work

  • Author
  • Rocketeer
  • 19312 replies
  • October 30, 2018

Problem:

Variables of type PIC S9(4) COMP with binary length 2 bytes (32 bit) are displayed with 4 digits. Is it possible to change the debugger settings to show the full range of values?

Sample: Field BIO-SEGM-LGTH-USE has a value of 11156 (x'2b94'), but is displayed as 1156.


#COBOL
#EnterpriseDeveloper
Thank you, Steve. We will open an incident.