Page 1 of 2

How to make a default browse to a dataset.

PostPosted: Fri Jun 22, 2012 12:41 am
by Viswanathchandru
Dear all,

I'm curious to know, we could have seen when we try opening some load modules of system in a "E"(edit) or "V"(view) mode it automatically makes it into Browse mode and saying "Browse Substituted". How this is getting activated. I dont think the security server(RACF,ACF2 etc) could be the reason. But what is the reason behind this. Is that invoking some macros for sensitive datasets? Can anyone tell me how this happens. So, that i can also try it in my shop :) Not sure whether this is the right place to shoot this question. If not kindly transfer this to the relevant topic. Thanks!


Regards,
Viswa

Re: How to make a default browse to a dataset.

PostPosted: Fri Jun 22, 2012 1:41 am
by Robert Sample
The security server has absolutely nothing to do with it, nor does it have anything to do with "sensitive datasets", whatever those are (it's not clear how you are defining the term, and the security server usually protects system resources so there's no need for anything additional for "sensitive datasets").

The explanation is quite simple: TSO/ISPF will not allow you to view or edit any data set with RECFM=U, nor view / edit any data set with an LRECL less than 10. If ISPF detects an attempt to do so, it automatically substitutes browse for view / edit.

Re: How to make a default browse to a dataset.

PostPosted: Fri Jun 22, 2012 3:03 am
by Pedro
So, that i can also try it in my shop


I am not sure what you thought you could try. Perhaps use a rexx program like this:
n = listdsi(mydsn)
If sysrecfm = "U" then
   Address ISPEXEC "BROWSE ..."
Else
   Address ISPEXEC "VIEW ..."

Re: How to make a default browse to a dataset.

PostPosted: Fri Jun 22, 2012 12:22 pm
by NicC
What message did you get when you pressed PF1?

Re: How to make a default browse to a dataset.

PostPosted: Fri Jun 22, 2012 3:07 pm
by Viswanathchandru
Hello Robert,Pedro and NicC thanks for addressing the post.

Robert: Yes it was a RECFM 'U' and so i was not able to edit or view it. What i mean by sensitive dataset is that it was a system load modules say the linklibs. And i didnt try all the Load library (user library) hence i thought because of system sensitive load module its getting opened as Default Browse.


Pedro: Thanks for the codes. That could help me in my implementations. :)

NicC: I didnt get any error code. Rather it was displaying "Browse substituted" Now i can understand the reason for that. Thanks all for educating me!


Regards,
Viswa

Re: How to make a default browse to a dataset.

PostPosted: Fri Jun 22, 2012 10:46 pm
by NicC
I didn't ask if you got an error code I asked what you got when you pressed PF1 which should have given you a long message explaining why browse was substituted. I've just done it and the message displayed is similar to Robert's. A little self-help - especially using the help key - could save a lot of hassle.

Re: How to make a default browse to a dataset.

PostPosted: Mon Jun 25, 2012 11:47 pm
by Pedro
when you pressed PF1 which should have given you a long message

If you get a short message in the upper right, and while the short message is still displayed, you can press F1 to get the long text that is part of the same message.

It also helps to issue MSGID ON beforehand. With MSGID ON, when you press F1 as described above, the message number will also be displayed. If you do not understand the long message text, you can search for an explanation using LOOKAT: http://www-03.ibm.com/systems/z/os/zos/bkserv/lookat/

Re: How to make a default browse to a dataset.

PostPosted: Thu Oct 25, 2012 2:07 pm
by vas_v9
@Viswa: I guess if a dataset is APF protected and when you try to edit it, BROWSE will be substituted automatically.

Re: How to make a default browse to a dataset.

PostPosted: Thu Oct 25, 2012 3:11 pm
by prino
vas_v9 wrote:@Viswa: I guess if a dataset is APF protected and when you try to edit it, BROWSE will be substituted automatically.

Spuit 11 geeft ook nog modder...

Re: How to make a default browse to a dataset.

PostPosted: Thu Oct 25, 2012 6:20 pm
by Pedro
I guess if a dataset is APF protected and when you try to edit it, BROWSE will be substituted automatically.

Not true.

It is okay to guess on your own, but guessing in public is not. It will confuse others that read your post.