petertmartin
IS-IT--Management
We are looking at passing data as a fixed-length message (via MQSeries) to a COBOL copybook on the mainframe.
If I have a simple copybook e.g.
01 TEST1 PIC S9999V99.
How is the sign represented? Am I correct in assuming -10.00 would be -001000 and +10.00 would be +001000, otherwise how can a negtive number be reprented in a fixed-length file?
I am also unsure as to what impact, if any, the following types of clauses have on the fixed-length file (are they only used for memory management?):
SIGN IS LEADING SEPERATE CHARACTER
SIGN TRAILING SEPERATE
COMP-3
Thanks.
If I have a simple copybook e.g.
01 TEST1 PIC S9999V99.
How is the sign represented? Am I correct in assuming -10.00 would be -001000 and +10.00 would be +001000, otherwise how can a negtive number be reprented in a fixed-length file?
I am also unsure as to what impact, if any, the following types of clauses have on the fixed-length file (are they only used for memory management?):
SIGN IS LEADING SEPERATE CHARACTER
SIGN TRAILING SEPERATE
COMP-3
Thanks.