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

Overlaying specific characters using SYNCSORT


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

New User


Joined: 25 Apr 2007
Posts: 44
Location: chennai, India

PostPosted: Fri May 25, 2007 10:04 am
Reply with quote

Hi
I have the following requirement

Input:

100B1 20
100B1F20
100B1 20
100B1 20
100B1F20
100B2 30
200B1G10
300B2 10
300B2H10
300B2 10
300B2 10
..
..
..
Output:

100B1F20
100B1F20
100B1F20
100B1F20
100B1F20
100B2F30
200B1G10
300B2H10
300B2H10
300B2H10
300B2H10
..
..
Can this be achieved using SYNCSORT?
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri May 25, 2007 10:20 am
Reply with quote

Raam,

Elobrate your requirement as your example doesn't convey anything (except change in few records with value F or G or H).
Back to top
View user's profile Send private message
raam_kumar

New User


Joined: 25 Apr 2007
Posts: 44
Location: chennai, India

PostPosted: Fri May 25, 2007 10:34 am
Reply with quote

Hi
I have to compare position's 1-3 and 6. The input file will contain different values in position's 1-3. each value at position 1-3 will contain either a alphabet or spaces at position 6. (the alphabet is constant for that particular value). I have to replace the spaces with that alphabet .

For Eg: if value of Pos 1-3 is 100. it may contain either 'F' or spaces at position 6. The requirement is i have to replace all the spaces at position 6 for value 100 by 'F'
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat May 26, 2007 4:28 am
Reply with quote

Hello,

You might consider ignoring the spaces.

If i understand, when pos 1-3 is 100, pos 6 must always become an F - if 200 pos 6 must always become a G - and so on.

If you only check for the 100, 200, etc and move the appropriate letter, you should get the desired result.

Again, this is only true if i understand the requirement.
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 Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
This topic is locked: you cannot edit posts or make replies. Construct new record using specific f... DFSORT/ICETOOL 6
No new posts Count the number of characters in a f... CA Products 1
Search our Forums:

Back to Top