MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Executing the Find command in batch mode.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Fri Feb 03, 2006 3:22 am    Post subject: Executing the Find command in batch mode. Reply with quote

Hi,

How to execute the "Find" command in batch mode using the IKJEFT01. Can anybody pls send me the JCL?

Is it possible to execute "FAND" & "FOR" commands in batch mode too?

Thanks in advance.
_________________
MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Back to top
View user's profile Send private message Send e-mail
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Fri Feb 03, 2006 10:45 am    Post subject: Reply with quote

What "FIND" command? The ISPF EDIT Find? The TSO EDIT Find? SUPERC? And, more importantly, what do you need to do with the results of the FIND command?
Back to top
View user's profile Send private message
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Mon Feb 06, 2006 7:21 am    Post subject: Reply with quote

It is TSO Edit. I have got certain data into a PS file by using SARBCH utility. Now, I want to find certain string in the PS file (out of 1000000) records and copy thos lines into a separate PS file (in batch mode). I will download this file as a text file and prepare my xl sheet for further reporting.

Thanks.
_________________
MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Back to top
View user's profile Send private message Send e-mail
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Mon Feb 06, 2006 9:22 am    Post subject: Reply with quote

I doubt anyone uses TSO edit anymore (I certainly hope not), and it may be possible to do this with TSO edit but I don't know. 1 Million lines is too large to place in ISPF edit. It is probably easiest to write a small Rexx program to do this (probably about 20 lines) or a small COBOL program to do it (probably about 37 Million lines Smile ). Either way it should be a small programming effort. You could also call ISRSUPC (SuperC) or SORT depending on things like the length of the records, the variability of the data formats, etc.

Or you could put the file to an HFS location and use grep which does this type of search directly. I'd prefer the grep solution since the whole thing is about 4 lines of code (roughly: oput mvssource hfsinput..., grep "string" hfsinput>outputfile, oget outputfile, oshell rm hfsinput outputfile) maybe less if you can use grep on an MVS data set (I haven't checked, but it is worth looking up).
Back to top
View user's profile Send private message Visit poster's website
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Mon Feb 06, 2006 9:35 pm    Post subject: Reply with quote

Hi semigeezer,

I will try to get the GREP thing.

Thanks for the help.
_________________
MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group