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

Synsort - sort records within that particular header/trailer


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

New User


Joined: 10 Feb 2006
Posts: 10
Location: Bangalore

PostPosted: Thu Nov 11, 2010 4:58 pm
Reply with quote

Hi,

I have a requirement as follows. I need to do this using SYNCSORT.

The input for sort is the GDG base. Each generation is as follows.

File1
Code:

UHDR20101101
ZZZZ00001
BBBB00002
ZZZZ00001
UTRL000005



File2
Code:

UHDR20101102
ZZZZ00001
AAAA00002
UTRL000004



The expected output is as follows.
Code:

UHDR20101101
BBBB00002
ZZZZ00001
UTRL000005
UHDR20101102
AAAA00002
ZZZZ00001
UTRL000004



The keypoints to attain this particular output file are
1. The trailer and header should not be affected.
2. The duplicate records found within that particular header and trailer only should be removed. If the same record is found in another file, it should not be disturbed.
3. sort the records within that particular header and trailer in increasing order.
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: Mon Nov 22, 2010 7:00 am
Reply with quote

Hello,

When posting a Syncsort question, it is best to mention Syncsort as the first part of the subject. Your subject/title has been modified.

It looks like this topic fell into a crack. . .

See if this previous topic might help:
ibmmainframes.com/viewtopic.php?t=51354

d
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Nov 22, 2010 1:32 pm
Reply with quote

Rather similar Link is this one Dick, have a look: www.ibmmainframes.com/viewtopic.php?t=52118&highlight=uhdr20101101 icon_wink.gif
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top