Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

CLOSE a dataset opened in Browsed mode

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: CLOSE a dataset opened in Browsed mode
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

Moderator


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

PostPosted: Mon Jan 23, 2012 4:43 pm    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Mon Jan 23, 2012 5:29 pm    Post subject: Reply to: CLOSE a dataset opened in Browsed mode
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

Moderator


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

PostPosted: Mon Jan 23, 2012 5:37 pm    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Mon Jan 23, 2012 8:14 pm    Post subject: Reply to: CLOSE a dataset opened in Browsed mode
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

Moderator


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

PostPosted: Mon Jan 23, 2012 8:30 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Mon Jan 23, 2012 8:49 pm    Post subject: Reply to: CLOSE a dataset opened in Browsed mode
Reply with quote

is this topic a continuation of
http://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

Moderator


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

PostPosted: Mon Jan 23, 2012 9:53 pm    Post subject:
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: 175
Location: UK

PostPosted: Wed Jan 25, 2012 4:05 pm    Post subject:
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: 1703
Location: Australia

PostPosted: Thu Jan 26, 2012 4:39 am    Post subject:
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: 175
Location: UK

PostPosted: Thu Jan 26, 2012 2:17 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us