Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EBCDIC Sign Digit problem on Micro Focus COBOL

Status
Not open for further replies.

Acadian

Programmer
Aug 10, 2005
5
0
0
CA
I'm converting COBOL programs from Open VMS to Micro Focus Cobol for Unix. On Unix, the program do not recognize the "EBCDIC Sign Digit" like on th Open VMS !

Then value 00000000131266K suppose to give 000000001312662-

Can somebody give me a clue to resolve my problem ?

Part of my program :

SELECT INFILE1 ASSIGN TO "$INFILE1"
ORGANIZATION IS LINE SEQUENTIAL.

SELECT OUTFILE1 ASSIGN TO "$OUTFILE1".


01 WS-TYPE-C-REC.
05 SOLDE-COURANT PIC S9(013)V99.

01 OUTFILE1-REC.
05 SOLDE-COURANT PIC S9(013)V99.


MOVE SOLDE-COURANT OF WS-TYPE-C-REC TO
SOLDE-COURANT OF OUTFILE1-REC

error code: 163 Illegal character in numeric field

Then value 00000000131266K suppose to give 000000001312662-
 
Very easy. Make a definition like PIC S9(013)V99 SIGN LEADING (or trailing) SEPARATE on both platforms. No sweat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top