Page 1 of 1

Can I get control on Browse/Edit of a dataet?

Posted: Sat Apr 04, 2015 8:47 pm
by RolfD
Hello,

is there any opportunity to get control whenever a dataset is browsed or edited with SPF? I would like to store the name of the dataset. One Idea is to use a edit-macro, this works fine but it can't be used with browse.
Is there anything like an exit or something else where I can do this?

Thanks for your comments,
Rolf

Re: Can I get control on Browse/Edit of a dataet?

Posted: Sat Apr 04, 2015 9:28 pm
by enrico-sorichetti
is there any opportunity to get control whenever a dataset is browsed or edited with SPF? I would like to store the name of the dataset.
You will get better replies if You tell what are You going to do with the saved dataset name.

the dataset and member names are ALWAYS available to edit/view macros!

Re: Can I get control on Browse/Edit of a dataet?

Posted: Sun Apr 05, 2015 9:16 am
by RolfD
I would like to VPUT the DS-Name (incl. Member if PO) to an SPF-var.

Regards, Rolf

Re: Can I get control on Browse/Edit of a dataet?

Posted: Sun Apr 05, 2015 11:58 am
by enrico-sorichetti
would like to VPUT the DS-Name (incl. Member if PO) to an SPF-var.
You already told that ...
what are You going todo with it afterwards ???

Re: Can I get control on Browse/Edit of a dataet?

Posted: Sun Apr 05, 2015 2:29 pm
by RolfD
enrico-sorichetti wrote:
would like to VPUT the DS-Name (incl. Member if PO) to an SPF-var.
You already told that ...
what are You going todo with it afterwards ???
That's all what should be done when Browse/Edit starts (or ends). In a second REXX, later, the var should be read for further processing.
What I already have is an edit-macro which stores the DSN of the edited dataset. This is running fine when the name of the macro is entered and saved on the edit-entry-Panel. But is not working for aplications that start SPF-edit without the init-macro (what we have). The second point is that an edit-macro can't be used with Browse, afaik.

Perhaps I was not very clear, I'm looking for a way to VPUT the DSN automatically whenever Edit/Browse starts or ends, without any doing by the user.

Regards, Rolf

Re: Can I get control on Browse/Edit of a dataet?

Posted: Sun Apr 05, 2015 2:41 pm
by nicc
I do not believe that you can do this but...you could default BROWSE to VIEW or... SMF will probably record the opening of the dataset so the info could be gleaned from there. Also, your security software may record the access.

Re: Can I get control on Browse/Edit of a dataet?

Posted: Sun Apr 05, 2015 2:59 pm
by RolfD
nicc wrote:I do not believe that you can do this but...you could default BROWSE to VIEW or... SMF will probably record the opening of the dataset so the info could be gleaned from there. Also, your security software may record the access.
Yes, security-software (RACF here) is something I considered, but I have no skills there. How can I default BROWSE to VIEW?

Thanks, Rolf

Re: Can I get control on Browse/Edit of a dataet?

Posted: Mon Apr 06, 2015 11:52 pm
by nicc
How can I default BROWSE to VIEW?
By not selecting Browse Mode

Code: Select all

                                       
                                       
       Options                         
          Confirm Cancel/Move/Replace  
       /  Browse Mode                  
          View on Workstation          
       /  Warn on First Data Change    
          Mixed Mode                   
                                       
However, you cannot do this for anyone else but yourself - unless you are a sysprog and rename the VIEW executable to whatever the BROWSE executable is (I guess).