View previous topic :: View next topic
|
Author |
Message |
janmejay Warnings : 1 New User
Joined: 22 Jun 2007 Posts: 85 Location: bangalore
|
|
|
|
Hello
i need to search for a particular string in dataset but i dont know the exact position for example the string may present at any location.
how retrieve the record in jcl which satisfies the above seach condition |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Quote: |
how retrieve the record in jcl which satisfies the above seach condition |
edit or view your jcl member and
type: Find "your particular string"
if your particular string is in the JCL your cursor will be at the starting position of the string. |
|
Back to top |
|
|
janmejay Warnings : 1 New User
Joined: 22 Jun 2007 Posts: 85 Location: bangalore
|
|
|
|
that is correct.
but i need to put it in a separate file. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Errrrrmmmm, cut and paste ??? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Looking at your topic title and the text inside, it appears that nothing is at all clear of what exactly it is that you want to do.
Your job to get accurate and quick replies is to make your topic as clear and understandable as possible, and to give as much information as possible.
I will assume that you want to extract records from one dataset and write them to another dataset. The records to be written out should all contain a certain string.
Had you have searched the forum you would have noticed that virtually every topic that is asked has follow up questions, and these are always the same ones, so once more for your benefit.
1) Which sort product are you using as the solution may vary from product to product. To identify which product you have please run a small sort and see if the messages are prefixed
ICEnnn for DFSORT
WERnnn for SYNCSORT
CA-nnn for CA-SORT.
If the messages are ICE messages, please post the line which has ICE201I as this will show the level of the product for DFSORT, and if you use SYNCSORT please show the level indicated in the sysout.
2) What is the RECFM and LRECL of the input dataset.
3) What is the string that needs to be found
4) What format is this string, character, PD, ZD, binary ........ |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Quote: |
i need to search for a particular string in dataset but i dont know the exact position for example the string may present at any location.
how retrieve the record in jcl which satisfies the above seach condition |
I suspect you can use DFSORT's substring search function. For example:
Code: |
INCLUDE COND=(p,m,SS,EQ,C'string')
|
For more information, see:
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CG40/2.2.6?DT=20090519162426
Or post the details of what you want to do. |
|
Back to top |
|
|
|