Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

I need some help in arranging the records using sort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
kiran_65

New User


Joined: 01 Apr 2005
Posts: 46

PostPosted: Tue May 11, 2010 7:28 am    Post subject: I need some help in arranging the records using sort
Reply with quote

Hi,

I have an requirement as follows:

I have records in a file. i want to arrange the record with one feild at same position. I mean i will have that feild in different position and i want to place that in another position.

For example, I have value in a feild at 466 position and the same value at 530 position in the next record. I want the value in the second record at position 466 rather than in 530 position.

can you please help me on this.

Please let me know if the requirement is not clear.

Thanks,
Kiran.
Back to top
View user's profile Send private message

Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Tue May 11, 2010 8:23 am    Post subject:
Reply with quote

Does every alternate record is having required field at 530 position?
or there is any identifier to identify such record...??

It would be helpful if you show some sample records (relevant fields only)....
Your previous posts are in DFSORT forum so I assume you have the same installed.
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Tue May 11, 2010 8:39 am    Post subject:
Reply with quote

Hello,

As Sambhaji mentioned, you need to post some sample data.

Create some short records that demonstrate what you have as input. Then show the output you want when the process is run.

Explain the "rules" for getting from the sample input to the sample output.
Back to top
View user's profile Send private message
Alexis Sebastian

New User


Joined: 04 Mar 2010
Posts: 38
Location: DC

PostPosted: Tue May 11, 2010 10:21 am    Post subject:
Reply with quote

Hi,

Could you clarify the below queries?

1. Will value be the same for all the records irrespective of the position?

2. As you mentioned, value from the second record at postion 530 needs to be moved to postion 466. In that case, what needs to be there at pos 530 after moving the value.

3. As Sambhaji and Dick mentioned, please post clear requirement with some sample input and desired output?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us