Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 1542
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: 10350
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: 1542
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: 2088
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: 1542
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: 10350
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: 1542
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: 182
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: 182
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us