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

retrieve records from a dataset


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
janmejay
Warnings : 1

New User


Joined: 22 Jun 2007
Posts: 85
Location: bangalore

PostPosted: Tue Nov 03, 2009 6:41 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Nov 03, 2009 7:06 pm
Reply with quote

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
View user's profile Send private message
janmejay
Warnings : 1

New User


Joined: 22 Jun 2007
Posts: 85
Location: bangalore

PostPosted: Tue Nov 03, 2009 7:32 pm
Reply with quote

that is correct.
but i need to put it in a separate file.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Nov 03, 2009 7:47 pm
Reply with quote

Errrrrmmmm, cut and paste ???
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Nov 03, 2009 8:34 pm
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue Nov 03, 2009 10:52 pm
Reply with quote

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
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 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
Search our Forums:

Back to Top