Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to open a PDS EDIT/Browse/VIew mode
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
Author Message
lohithegde

New User


Joined: 18 May 2008
Posts: 21
Location: Chennai

PostPosted: Sun Jun 15, 2008 12:10 pm    Post subject: How to open a PDS EDIT/Browse/VIew mode
Reply with quote

I want to open an PDS in View and browse and Edit mode....but I'm able to open in only one mode
"ISPEXEC EDIT DATASET('OurID.PDS')"
but above command only open dataset in edit mode...we can't open the members in view/browse mode.
Back to top
View user's profile Send private message
References
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 8719
Location: 221 B Baker St

PostPosted: Sun Jun 15, 2008 1:11 pm    Post subject:
Reply with quote

Hello,

Try ISPEXEC BROWSE - EDIT means edit.
Back to top
View user's profile Send private message
lohithegde

New User


Joined: 18 May 2008
Posts: 21
Location: Chennai

PostPosted: Sun Jun 15, 2008 2:40 pm    Post subject: Reply to: How to open a PDS EDIT/Browse/VIew mode using rexx
Reply with quote

do u mean ADDRESS ISPEXEC "BROWSE - EDIT DATASET('ID.PDS')"

but it is giving the rerror
Invalid keyword
'-' is not a valid keyword for this service.

My reqirement is to open a PDS in all opening modes (EDIT/BROWSE/View)
Back to top
View user's profile Send private message
PeD

Senior Member


Joined: 26 Nov 2005
Posts: 313
Location: Belgium

PostPosted: Sun Jun 15, 2008 3:53 pm    Post subject:
Reply with quote

No
ADDRESS
"ISPFEXEC BROWSE DATASET(pds(member))"
or
"ISPFEXEC VIEW DATASET(pds(member))"
Back to top
View user's profile Send private message
lohithegde

New User


Joined: 18 May 2008
Posts: 21
Location: Chennai

PostPosted: Sun Jun 15, 2008 4:30 pm    Post subject: Reply to: How to open a PDS EDIT/Browse/VIew mode using rexx
Reply with quote

ADDRESS
"ISPFEXEC BROWSE DATASET(pds)"
or
Address
"ISPFEXEC VIEW DATASET(pds)"
above method only open a dataset in Edit or Browse mode...Let us say If we open a dtaset in browse mode...it can not be viewed...
My reqirement is I want to open Just like 3.4 option like it can viewed or Browse or edited depending on the B/E/V what we specify infront of the PDS member
EX:
VIEW YOURID.PDS
Command ===>
Name
V/B/E________ PDSMEM
Back to top
View user's profile Send private message
PeD

Senior Member


Joined: 26 Nov 2005
Posts: 313
Location: Belgium

PostPosted: Sun Jun 15, 2008 5:08 pm    Post subject:
Reply with quote

Quote:
ADDRESS
"ISPFEXEC BROWSE DATASET(pds)"
or
Address
"ISPFEXEC VIEW DATASET(pds)"
above method only open a dataset in Edit or Browse mode...Let us say If we open a dtaset in browse mode...it can not be viewed...

open in Browse or View mode, not , as you said, Edit or Browse mode !!!

Execpt this, I don't understand your requirement now. Sorry
Back to top
View user's profile Send private message
lohithegde

New User


Joined: 18 May 2008
Posts: 21
Location: Chennai

PostPosted: Sun Jun 15, 2008 6:10 pm    Post subject:
Reply with quote

Oh Sorry Brother....
Let us say I opened the dataset using Following Rexx code
ADDRESS
"ISPFEXEC BROWSE DATASET(pds)"

Output will be
BROWSE MYID.PDS Row 00001 of 00002
Command ===> Scroll ===> CSR
Name Prompt Size Created Changed ID
. MEM1
. Mem2


If you Put V infront of Member then we will get

BROWSE MYID.PDS Invalid select codeCommand ===> Scroll ===> CSR
Name Prompt Size Created Changed ID
V MEM1
. Mem2

My reqirement is If we put V it should open in View mode...if we put B it should open in browse mode...if E -->edit mode

But Normal REXX code will open in either in view or in browse or in EDIT
I want All should work
Thanks
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 1954
Location: Israel

PostPosted: Sun Jun 15, 2008 7:07 pm    Post subject:
Reply with quote

You can open a dataset only in one mode at a time.

You can code something like this:
Code:

/* REXX */
ARG DSNAME MODE .
 
SELECT
  WHEN MODE = 'B' THEN
    ADDRESS ISPEXEC "BROWSE DATASET(&DSNAME)"
  WHEN MODE = 'V' THEN
    ADDRESS ISPEXEC "VIEW DATASET(&DSNAME)"
  WHEN MODE = 'E' THEN
    ADDRESS ISPEXEC "EDIT DATASET(&DSNAME)"
  OTHERWISE
  NOP
END
 
EXIT


O.
Back to top
View user's profile Send private message
PeD

Senior Member


Joined: 26 Nov 2005
Posts: 313
Location: Belgium

PostPosted: Sun Jun 15, 2008 7:36 pm    Post subject:
Reply with quote

OK I see what you want ( as Ofer71 said ).

Why do you have to change your mind between the two commands?
You start browsing , stay browsing....

Is there a specific need to change?

Cheers
Pierre
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 1954
Location: Israel

PostPosted: Sun Jun 15, 2008 10:10 pm    Post subject:
Reply with quote

Regarding switching - remember that BROWSE/VIEW/EDIT are also an ISPF Edit-Macro commands (in addition to the above ISPF Services), so you can issue them from within an edit-macro (ISREDIT),thus switching between modes.

O.
Back to top
View user's profile Send private message
lohithegde

New User


Joined: 18 May 2008
Posts: 21
Location: Chennai

PostPosted: Mon Jun 16, 2008 10:26 am    Post subject:
Reply with quote

Hi
I want to Develop a REXX tool it will overome a drawbacks of 3.4 option
Requirement:
1 It should show last 10 Viewed/browsed/Edited dataset
2 It should have all features of 3.4 option Like
i/p in 3.4 :-YOURID.**.*
o/p :-all datasets

My reqirement is If we put V it should open in View mode...if we put B it should open in browse mode...if E -->edit mode
please anybody knows let me now
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 1954
Location: Israel

PostPosted: Mon Jun 16, 2008 10:41 am    Post subject:
Reply with quote

Take a look at the LMDDISP Service.

O.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 3151
Location: italy

PostPosted: Mon Jun 16, 2008 11:42 am    Post subject: Reply to: How to open a PDS EDIT/Browse/VIew mode
Reply with quote

I just checked... from option 3.4
after selecting in ANY(browse,view,edit) mode a dataset
You can use any from any member command ( even delete )only if You have activated
Code:
Enhanced member list for Edit, View, and Browse


Quote:
... It should show last 10 Viewed/browsed/Edited dataset


ever heard about DSLIST, REFLIST and friends
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 526
Location: work

PostPosted: Mon Jun 16, 2008 10:24 pm    Post subject: Reply to: How to open a PDS EDIT/Browse/VIew mode
Reply with quote

I think the poster wants the member list service.
Code:
/*REXX*/                                             
DSN = 'PEDRO.JCL.CNTL'   
Address ISPEXEC                                     
"LMINIT  DATAID(DID) DATASET('"DSN"') ENQ(SHRW)"     
"LMOPEN  DATAID("did")"                             
"MEMLIST DATAID("did") CONFIRM(YES)"                 
"LMFREE  DATAID("did")"                             


Which provides a member list and where you can issue B, E, or V line commands (or other line commands).
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 526
Location: work

PostPosted: Tue Jun 17, 2008 2:56 am    Post subject: Reply to: How to open a PDS EDIT/Browse/VIew mode
Reply with quote

Regarding:
Quote:
I want to Develop a REXX tool it will overome a drawbacks of 3.4 option
Requirement:
1 It should show last 10 Viewed/browsed/Edited dataset


Try ISPF option 11 - the 'ISPF workplace'. It is very much like ISPF 3.4, but the name rules are slightly different and you can recall the last 30 names. And you can create your own list of names, so you can save many more names than the 10 you want.

-or- perhaps what you want is to change one of your keys to be NRETRIEV when you are in the ISPF 'edit entry panel' (where you provide name of dataset). Press the key repeatedly and it will retrieve the previously used names. Also works from View and from option 3.4
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 HoursGoto page 1, 2  Next
Page 1 of 2