View previous topic :: View next topic
|
Author |
Message |
dp33770
New User
Joined: 04 Jul 2007 Posts: 91 Location: Hyderabad
|
|
|
|
I have a sequential file . My requirement is I need to write the records into another file which has a particular word in it. Say 'XXXX' . this word can at any position in the record. Can I do it using any SORT utility ? |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hello Deep,
Yes you can used sort utility for this. Would yoy please provide record length & fromat so that we can provide you sort card for this? |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Which sort product do you have at your shop?
What is LRECL\RECFM fo dataset? |
|
Back to top |
|
|
dp33770
New User
Joined: 04 Jul 2007 Posts: 91 Location: Hyderabad
|
|
|
|
I have SYNCSORT..
The LRECL is 2000 . |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hello Deep,
Please find below DFSORT card but I am not sure whether it will work with Syncsort or not
Code: |
//SYSIN DD *
OPTION COPY
INCLUDE COND=(1,2000,SS,EQ,C'XXXX')
/* |
|
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
Back to top |
|
|
dp33770
New User
Joined: 04 Jul 2007 Posts: 91 Location: Hyderabad
|
|
|
|
Thanks All.
It worked fine..... |
|
Back to top |
|
|
|