Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 6966
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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us