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

Possible problem with EDIT macro


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

New User


Joined: 08 Mar 2010
Posts: 13
Location: Nuremberg, Germany

PostPosted: Mon Aug 23, 2010 4:58 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Aug 23, 2010 5:19 pm
Reply with quote

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
View user's profile Send private message
icetigerfan

New User


Joined: 08 Mar 2010
Posts: 13
Location: Nuremberg, Germany

PostPosted: Mon Aug 23, 2010 5:39 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Aug 23, 2010 5:56 pm
Reply with quote

Oooooops, I apologise for the use of fast fingers and splitting the topic. icon_redface.gif

But, it is Monday icon_cry.gif
Back to top
View user's profile Send private message
devmisra

New User


Joined: 29 Jan 2009
Posts: 39
Location: India

PostPosted: Thu Aug 26, 2010 5:16 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Aug 26, 2010 5:21 pm
Reply with quote

Yes, it was.
Back to top
View user's profile Send private message
devmisra

New User


Joined: 29 Jan 2009
Posts: 39
Location: India

PostPosted: Thu Aug 26, 2010 5:38 pm
Reply with quote

expat wrote:
Yes, it was.


I have been waiting for the reply since monday and today i found it..... icon_biggrin.gif

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Aug 26, 2010 5:51 pm
Reply with quote

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
View user's profile Send private message
devmisra

New User


Joined: 29 Jan 2009
Posts: 39
Location: India

PostPosted: Thu Sep 02, 2010 7:38 pm
Reply with quote

Thank you Expat.
Cant read JSCAN source code. icon_sad.gif
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
View user's profile Send private message
devmisra

New User


Joined: 29 Jan 2009
Posts: 39
Location: India

PostPosted: Thu Sep 02, 2010 7:51 pm
Reply with quote

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
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 Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
No new posts PRINTOUT macro PL/I & Assembler 0
No new posts Need help to resolve a hard edit COBOL Programming 8
Search our Forums:

Back to Top