IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Prepend zeroes before a number thru SYNCSORT


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gprerna

New User


Joined: 21 Mar 2007
Posts: 38
Location: US

PostPosted: Wed May 02, 2007 6:56 am
Reply with quote

Hi,

I want to prepend zeroes before a number whose sarting position is unknown. For example in the attached document, we have the number 17.13 starting from column 9. But this number can be of variable bytes. In case, its 7.13 then it will start from column 10. Please suggest how i can prepend zeroes before this number. I want to take average of these numbers from 3 different files.
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Wed May 02, 2007 9:32 am
Reply with quote

I guess with SORT you can change spaces to Zeros using ALTSEQ.
And then use the numeric data.

Try if this works.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed May 02, 2007 8:14 pm
Reply with quote

gprerna,

How many zeros to you want to prepend? What do you want the output to look like for 17.13, for 7.13, for 217.13?

Why do you need to prepend zeros to get an average?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Increase the number of columns in the... IBM Tools 3
Search our Forums:

Back to Top