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 

Viewing a dataset in backgound - Masking View!!!

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


Joined: 20 Apr 2006
Posts: 222
Topics: 24

PostPosted: Mon Jan 22, 2007 4:57 am    Post subject: Viewing a dataset in backgound - Masking View!!! Reply with quote

Hi,

I am currently developing a search tool.

I am facing some problem with the search. I am using LM services and also making use of edit macros to accomplish my task. Rough skeleton as shown below:

LMINIT dataid..
LMopen dataid.
VIEW dataid macro(macro1)
LMclose
LMFree.

The macro1 returns some search results based on the criteria specified in the macro. My problem is that when I execute the rexx code, the dataset gets opened in VIEW mode as per the command. and the results are obtained when I exit from the dataset. Is it possible to mask the dataset to be opened in VIEW mode? I mean can we perform the same task without opening the dataset at all?

Note: I have obtained the results using EXECIO commands; But I am trying out LM services for a performance-enhanced approach.

Please do suggest me to resolve this issue.

Thanks in advance.
Vivek Gangadharan
Back to top
View user's profile Send private message
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Mon Jan 22, 2007 6:15 am    Post subject: Reply with quote

I don't think you can run an edit macro against an un-opened dataset. Why can't you end the edit macro with CANCEL?

O.
________
drug testing kit


Last edited by ofer71 on Sat Feb 05, 2011 11:56 am; edited 1 time in total
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 Jan 22, 2007 3:35 pm    Post subject: Reply with quote

You can run the VIEW service without the LMINIT/LMOPEN/LMFREE by using the DATASET keyword. But I can't imagine that opening up the editor (which internally opens about 5 DCBs, then opening and searching SYSEXEC and/or SYSPROC and/or ALTLIB'ed data sets, then parsing the macro, running it, shutting down the editor and retrieving your results, possibly through more I/O, would be faster than doing the single I/O that execio would do. It might be faster if you are going to have to allocate lots of members (ALLOC/FREE is expensive) but I doubt it.

Better yet, why not use SuperC? It already has the search capabilities, and can search the whole data set with one set of allocations. You can get output from it in a number of ways or just parse the listing. Or use SORT if your data is formatted in a particular way.
Back to top
View user's profile Send private message Visit poster's website
vivek1983
Intermediate


Joined: 20 Apr 2006
Posts: 222
Topics: 24

PostPosted: Thu Jan 25, 2007 11:23 pm    Post subject: Reply with quote

Hi,

I ended the edit macro with Cancel. It worked the exact way I needed.

But it takes some time as semigeezer has indicated.

Can you emphasize on how to use the SuperC search from REXX (Can we use both online and batch versions of Superc?

Thanks and Regards,
Vivek G
_________________
Vivek G
--------------------------------------
A dream is just a dream. A goal is a dream with a plan and a deadline. (Harvey Mackay)
Back to top
View user's profile Send private message
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