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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm


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