Skip to main content

In a migration we're performing, we have this difference: we have Cobol programs in Server Express 5.1 and signed variables (not comp); after execution, when viewing the output file, the field displays the sign at the end of the variable. That same program in Visual Cobol 10 generates output but without displaying the sign at the end of the variable (an example is attached).

We modified compiler features and resolved the appearance of the sign, but the record length increases. Therefore, we must review the use of this file with the new length. The question is: What parameter do we include in the compiler to correctly generate the record with the sign of the variable without increasing the length?

AIX71+SE5   ADJ ZERO/NEG:00000000000000000+OLD:00000000000000000+NEW:00000000000000000+

AIX73+VC10  ADJ ZERO/NEG:00000000000000000OLD:00000000000000000NEW:00000000000000000

Thank you very much for your guidance.



------------------------------
alejandro rodriguez mancera
consulting II
Optima LATAM
------------------------------

In a migration we're performing, we have this difference: we have Cobol programs in Server Express 5.1 and signed variables (not comp); after execution, when viewing the output file, the field displays the sign at the end of the variable. That same program in Visual Cobol 10 generates output but without displaying the sign at the end of the variable (an example is attached).

We modified compiler features and resolved the appearance of the sign, but the record length increases. Therefore, we must review the use of this file with the new length. The question is: What parameter do we include in the compiler to correctly generate the record with the sign of the variable without increasing the length?

AIX71+SE5   ADJ ZERO/NEG:00000000000000000+OLD:00000000000000000+NEW:00000000000000000+

AIX73+VC10  ADJ ZERO/NEG:00000000000000000OLD:00000000000000000NEW:00000000000000000

Thank you very much for your guidance.



------------------------------
alejandro rodriguez mancera
consulting II
Optima LATAM
------------------------------

Hi Alexandro,

In your example, it looks like it is the difference between storing the sign internally, which is the default, and storing it externally as a separate character.

The directive which can control this is the SIGN directive: SIGN

It looks like in SX this was set to SIGN"SEPARATE" and in VC it is not being set so there would be no sign shown.

You really need to find out and use the same directives during the migration, or you may run into a lot of these default differences.

Thanks



------------------------------
Chris Glazier
Principal Technical Support Specialist
Rocket Forum Shared Account
------------------------------