MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search found 8 matches
MVSFORUMS.com Forum Index
Author Message
  Topic: Extra byte added to all records in sort with header/trailer
rajeshm01

Replies: 3
Views: 3697

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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 Rolling Eyes

here is what i tried...
05 FIELDA PIC S999V99 COP ...
  Topic: Separating integer and decimal parts from comp3
rajeshm01

Replies: 16
Views: 13838

PostForum: 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 ...
 
Page 1 of 1
All times are GMT - 5 Hours
Jump to:  


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group