View previous topic :: View next topic
|
Author |
Message |
devmisra
New User
Joined: 29 Jan 2009 Posts: 39 Location: India
|
|
|
|
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 |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
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 |
|
|
devmisra
New User
Joined: 29 Jan 2009 Posts: 39 Location: India
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
a BROWSED dataset will be closed when hitting/using PF3 |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Why dont you try to make use of OUTTRAP? |
|
Back to top |
|
|
devmisra
New User
Joined: 29 Jan 2009 Posts: 39 Location: India
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2594 Location: Silicon Valley
|
|
|
|
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 |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Yes Pedro.
If I understand his requirement I guess devmisra must modify JSCAN with an OUTTRAP |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
A post qualified for Dislike |
|
Back to top |
|
|
David Robinson
Active User
Joined: 21 Dec 2011 Posts: 199 Location: UK
|
|
|
|
Perhaps you could use JEM instead of JSCAN? Then the output is diplayed in View mode. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
imagine having both products, some one has plenty of spare cash, I work on accounts where neither is available.
Gerry |
|
Back to top |
|
|
David Robinson
Active User
Joined: 21 Dec 2011 Posts: 199 Location: UK
|
|
|
|
It's the same product, just two different options. |
|
Back to top |
|
|
|