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 

Convert Amount having decimal point to PD using Syncsort

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
vini
Intermediate


Joined: 12 Jan 2004
Posts: 240
Topics: 48
Location: Maryland

PostPosted: Sat Mar 26, 2022 10:55 pm    Post subject: Convert Amount having decimal point to PD using Syncsort Reply with quote

Hello Sort Gurus,

Please let me know if there is a way to convert a field which is of type 9(8).9(2) into Packed Decimal (Comp-3) using Syncsort ?
Field starts at position 85 in the FB file.
Ex:
00000263.02

The source of the data in file was Bigdata/impala where all amount fields are stored with explicit decimal point.

Regards,
Vini
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12369
Topics: 75
Location: San Jose

PostPosted: Sun Mar 27, 2022 9:46 am    Post subject: Reply with quote

vini,

Untested control cards
Code:

//SYSIN   DD *
  OPTION COPY
  OUTREC OVERLAY=(Opos:Ipos,11,SFF,PD,LENGTH=6)
/*

** Ipos = Input display numeric field position
** Opos = Output PD field position.

_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vini
Intermediate


Joined: 12 Jan 2004
Posts: 240
Topics: 48
Location: Maryland

PostPosted: Mon Mar 28, 2022 10:08 pm    Post subject: Reply with quote

Thank you so much Kolusu !!!
The provided solution worked like a charm Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group