IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

CLOSE a dataset opened in Browsed mode


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
devmisra

New User


Joined: 29 Jan 2009
Posts: 39
Location: India

PostPosted: Mon Jan 23, 2012 4:09 pm
Reply with quote

Hi All.

Please give some hints on

How to CLOSE a dataset opened in Browse Mode.

We can Close a dataset opened in View or Edit mode using 'ISREDIT CANCEL' or 'ISREDIT SAVE'. But how to close a browsed dataset.


Thanks.
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Mon Jan 23, 2012 4:43 pm
Reply with quote

There might be some purpose to use "EDIT" macros on VIEW or EDIT mode

But your requirement is quite puzzling as I am not sure why you need them for browse mode ?

If you just open the dataset in browse mode and view the contents and do nothing and get out of the dataset ..

I dont see anyother purpose than a Browse macro to browse a file

But once you open a dataset in browse mode and type exit or end will come out of the dataset.

If you can explain the purpose you might get better replies.
Back to top
View user's profile Send private message
devmisra

New User


Joined: 29 Jan 2009
Posts: 39
Location: India

PostPosted: Mon Jan 23, 2012 5:28 pm
Reply with quote

Yes, there is come purpose to use 'EDIT' macros ...

Well, i have to JSCAN around 250 jobs and copy the Jscanned job into another member of a pds. After that we will do some manual work to get some details and capture into excel.

If i could JSCAN a job thru one rexx and issue another rexx say 'CPY' (copy) then CPY will copy the content of USERID.JLSCRN into a PDS member and after copying,CPY will Close USERID.JLSCRN. Upon close of the browsed dataset USERID.JLSCRN , the 1st rexx will jscan next job as the rexx is on loop.

Please let me know if i need to explain more.

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Jan 23, 2012 5:29 pm
Reply with quote

a BROWSED dataset will be closed when hitting/using PF3
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Mon Jan 23, 2012 5:37 pm
Reply with quote

Why dont you try to make use of OUTTRAP?
Back to top
View user's profile Send private message
devmisra

New User


Joined: 29 Jan 2009
Posts: 39
Location: India

PostPosted: Mon Jan 23, 2012 6:43 pm
Reply with quote

I tried OUTTRAP

Code:

 XX = OUTTRAP(JSCAN.)     
 "ISREDIT JSCAN"         
 YY = OUTTRAP(OFF)       
 "ISREDIT CANCEL"         
 say ' JSCAN.1 ' JSCAN.1 


but i dont get any thing in JSCAN. stem.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Mon Jan 23, 2012 8:14 pm
Reply with quote

The process you want to do is still not clear.

OUTTRAP will capture line mode output, but will not capture full screen displays from a browse.

And by line mode output, I mean:
1. output from SAY insruction
2. messages from issuing TSO commands.
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Mon Jan 23, 2012 8:30 pm
Reply with quote

Yes Pedro.

If I understand his requirement I guess devmisra must modify JSCAN with an OUTTRAP
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Jan 23, 2012 8:49 pm
Reply with quote

is this topic a continuation of
ibmmainframes.com/about50848.html

after more than one year You should have learned the gotchas of JSCAN icon_smile.gif
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Mon Jan 23, 2012 9:53 pm
Reply with quote

A post qualified for Dislike icon_biggrin.gif
Back to top
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 199
Location: UK

PostPosted: Wed Jan 25, 2012 4:05 pm
Reply with quote

Perhaps you could use JEM instead of JSCAN? Then the output is diplayed in View mode.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Jan 26, 2012 4:39 am
Reply with quote

Hi,

imagine having both products, some one has plenty of spare cash, I work on accounts where neither is available.


Gerry
Back to top
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 199
Location: UK

PostPosted: Thu Jan 26, 2012 2:17 pm
Reply with quote

It's the same product, just two different options.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts HILITE on Browse mode? TSO/ISPF 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Allocated cylinders of a dataset DB2 12
Search our Forums:

Back to Top