Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts OC4 in SORT Mohan Kothakota DFSORT/ICETOOL 2 Tue Sep 12, 2017 6:30 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us