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

I need some help in arranging the records using sort


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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
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

Moderator Emeritus


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

PostPosted: Tue May 11, 2010 8:39 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Compare only first records of the fil... SYNCSORT 7
Search our Forums:

Back to Top