Author |
Message |
Topic: Extra byte added to all records in sort with header/trailer |
rajeshm01
Replies: 3
Views: 3697
|
Forum: Utilities Posted: Tue Jun 12, 2012 9:44 am Subject: Extra byte added to all records in sort with header/trailer |
thanks a lot kolusu!
learning is lot of fun and painful at the same time |
Topic: Extra byte added to all records in sort with header/trailer |
rajeshm01
Replies: 3
Views: 3697
|
Forum: Utilities Posted: Tue Jun 12, 2012 8:15 am Subject: Extra byte added to all records in sort with header/trailer |
hello friends,
i am using below sysin in pgm=sort and i am getting an extra byte added to all the records. i am merging 3 files. kindly help.
output is 464 FB.
//SYSIN DD * ... |
Topic: Separating integer and decimal parts from comp3 |
rajeshm01
Replies: 16
Views: 13838
|
Forum: Application Programming Posted: Tue Jun 05, 2012 1:28 am Subject: Separating integer and decimal parts from comp3 |
thanks guys.
kolusu,
FieldA should be COMP-3. I got s0c7 when moving FieldA(Comp3) to Temp. |
Topic: Separating integer and decimal parts from comp3 |
rajeshm01
Replies: 16
Views: 13838
|
Forum: Application Programming Posted: Mon Jun 04, 2012 2:53 am Subject: Separating integer and decimal parts from comp3 |
you are correct.
tried pic 99 and it also worked.
05 FIELDA PIC S999V99 COPM-3.
05 FIELDB PIC 9(3)v99.
05 FILLER REDEFINES FIELDB.
10 FIELDP PIC 999.
10 FIELDQ PIC V99.
10 FIE ... |
Topic: Separating integer and decimal parts from comp3 |
rajeshm01
Replies: 16
Views: 13838
|
Forum: Application Programming Posted: Sun Jun 03, 2012 4:00 am Subject: Separating integer and decimal parts from comp3 |
i tried this and it worked.
05 FIELDA PIC S999V99 COPM-3.
05 FIELDB PIC 9(3)v99.
05 FILLER REDEFINES FIELDB.
10 FIELDP PIC 999.
10 FIELDQ PIC V99.
10 FIELDX REDEIFNES FIELDQ PIC ... |
Topic: Separating integer and decimal parts from comp3 |
rajeshm01
Replies: 16
Views: 13838
|
Forum: Application Programming Posted: Sun Jun 03, 2012 1:33 am Subject: Separating integer and decimal parts from comp3 |
thanks
here is what i tried...
05 FIELDA PIC S999V99 COPM-3.
05 FIELDB PIC 9(3)v99.
05 FILLER REDEFINES FIELDB.
10 FIELDP PIC 999.
10 FIELDQ PIC V99.
05 FIELDC PIC 999.99
05 F ... |
Topic: Separating integer and decimal parts from comp3 |
rajeshm01
Replies: 16
Views: 13838
|
Forum: Application Programming Posted: Sat Jun 02, 2012 2:26 am Subject: Separating integer and decimal parts from comp3 |
thanks Kolusu , your example is fine.
ex: A = 234.45 then B=234.00 and C = 045.00
thanks papadi, thats what i received as requirement
here is what i tried...
05 FIELDA PIC S999V99 COP ... |
Topic: Separating integer and decimal parts from comp3 |
rajeshm01
Replies: 16
Views: 13838
|
Forum: Application Programming Posted: Fri Jun 01, 2012 2:01 pm Subject: Separating integer and decimal parts from comp3 |
hi all,
This is my requirement.
FieldA PIC S999V99 COMP-3.
FieldB PIC 999.99.
FieldC PIC 999.99.
I need integer part of FieldA in FieldB, decimal part of FieldA in FieldC.
The value in Fi ... |
|