Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
retrieve records from a dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
janmejay
Warnings : 1

New User


Joined: 22 Jun 2007
Posts: 81
Location: bangalore

PostPosted: Tue Nov 03, 2009 6:41 pm    Post subject: retrieve records from a dataset
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: 6968
Location: porcelain throne

PostPosted: Tue Nov 03, 2009 7:06 pm    Post subject:
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: 81
Location: bangalore

PostPosted: Tue Nov 03, 2009 7:32 pm    Post subject: Reply to: retrieve records from a dataset
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: 8593
Location: Back in jolly old England

PostPosted: Tue Nov 03, 2009 7:47 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Nov 03, 2009 8:34 pm    Post subject:
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 Moderator


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

PostPosted: Tue Nov 03, 2009 10:52 pm    Post subject:
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:

http://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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us