View previous topic :: View next topic
|
Author |
Message |
icetigerfan
New User
Joined: 08 Mar 2010 Posts: 13 Location: Nuremberg, Germany
|
|
|
|
Hi,
in an working Macro I have coded the following lines as first commands
Code: |
ADDRESS ISPEXEC "ISREDIT MACRO"
ADDRESS ISPEXEC "CONTROL ERRORS RETURN"
|
the macro is working in the background without opening the dataset in a panel. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
icetigerfan wrote: |
in an working Macro I have coded the following lines as first commands
Code: |
ADDRESS ISPEXEC "ISREDIT MACRO"
ADDRESS ISPEXEC "CONTROL ERRORS RETURN"
|
the macro is working in the background without opening the dataset in a panel. |
Is there a question in here. Where is the code to invoke the macro. |
|
Back to top |
|
|
icetigerfan
New User
Joined: 08 Mar 2010 Posts: 13 Location: Nuremberg, Germany
|
|
|
|
The macro is invoked by the following code:
Code: |
ADDRESS ISPEXEC "EDIT DATASET('"filename"') MACRO(macroname)"
|
PS. I don't need any help! I wanted to help the author of the topic, where I first had placed my answer (I've years of experience) |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Oooooops, I apologise for the use of fast fingers and splitting the topic.
But, it is Monday |
|
Back to top |
|
|
devmisra
New User
Joined: 29 Jan 2009 Posts: 39 Location: India
|
|
|
|
Hi Expat,
Is this topic related to ibmmainframes.com/viewtopic.php?t=50848
I tried both but still not working. Please refer to the link i mentioned above
Code: |
address ispexec "CONTROL NONDISPL"
|
&
Code: |
ADDRESS ISPEXEC "CONTROL ERRORS RETURN"
|
Thanks,
Dev |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Yes, it was. |
|
Back to top |
|
|
devmisra
New User
Joined: 29 Jan 2009 Posts: 39 Location: India
|
|
|
|
expat wrote: |
Yes, it was. |
I have been waiting for the reply since monday and today i found it.....
Well, i am posting the original req.
When we issue JSCAN on any job, the expanded job is opened in USERID.JLSCRN in Browse mode with error summary.
The above rexx code/macro is also doing the same thing. Its executing the JSCAN and opens the expanded jcl.
But i want to issue the JSCAN and don't want JSCAN to open that dataset. Rather , i would want to do like thos.
1. Execute JSCAN thru rexx
2. Copy expanded jcl to another dataset which is available from JSCAN but not opened.
3. Open that copied dataset( USERID.JOBNAME.SYSTEM.JLSCRN) in Browse mode.
Reason is, My team usually work on 2 systems.By doing this we can JSCAN more than one job in different systems.
Please give some idea so that i can try from my side. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Then you will need to analyse the code for JSCAN.
It is likely that the REXX code will probably call a program - where you will not be able to view or amend the source code. Or, if everything is performed in the REXX code then create a copy and change it as required. |
|
Back to top |
|
|
devmisra
New User
Joined: 29 Jan 2009 Posts: 39 Location: India
|
|
|
|
Thank you Expat.
Cant read JSCAN source code.
Well, any other way can we go for it?
I used
Code: |
address ispexec "CONTROL NONDISPL END"
|
Due to this END , the JSCANned dataset gets closed and also gets deleted(when you PF3 on jscanned dataset USERID.JLSCRN gets deleted). Is there any way to make other Panel active?
say. I have opened a jcl. Issued JSCAN. Jscan opend the USERID.JLSCRN and its active now. Is there any way to make my opend JCL active? |
|
Back to top |
|
|
devmisra
New User
Joined: 29 Jan 2009 Posts: 39 Location: India
|
|
|
|
to reply to my prev post...
After issuing JSCAN , i get the JSCANned dataset USERID.JLSCRN. then I press ENTER,it will copy USERID.JLSCRN to another dataset USERID.JLSCRN.JOBNAME and then USERID.JLSCRN will be closed and USERID.JLSCRN.JOBNAME will be opend.
Please suggest on this.. |
|
Back to top |
|
|
|