| Author |
Message |
RPatil
New User
Joined: 11 Jun 2005 Posts: 4
|
|
|
|
Hi All,
I have create my own command in REXX program and I put in ISRCMDS command table. I want use ISPF Edit macro when I execute in EDIT mode, when do this I getting RC=20 ie Sever error code.
I am able to execute same EDIT macro with call through user command.
Please could any know how execute ISPF edit macro when it is called through user command.
I really appreciate for any help.
Thanks,
Ravi |
|
| Back to top |
|
 |
References
|
Posted: Sat Jun 11, 2005 3:15 am Post subject: Re: ISPF Edit macro is not working in user command |
 |
|
|
 |
grepusr3
New User
Joined: 10 May 2005 Posts: 35
|
|
|
|
RPatil,
You may want to try placing your ispedit macro(s) in your
| Code: |
"//SYSEXEC DD ..." or
"//SYSPROC DD ..."
|
TSO ISPF session libraries. Then you invoke it from your editor command line. You do not need to add it to ISPCMDS table. Issue this TSO ISPF command to see your library allocation: TSO ISRDDN
| Code: |
EDIT MYUSERID.MASTER.CNTL(MEMBNAME) Columns 00001 00072
Command ===> mymacro Scroll ===> HALF
****** ***************************** Top of Data ******************************
0000001 .....
0000002 .....
|
-Pelad |
|
| Back to top |
|
 |
RPatil
New User
Joined: 11 Jun 2005 Posts: 4
|
|
|
|
Hi Pelad,
Thanks for replay and suggestions.
I know that ISPF edit macros does not need entry in ISPCMDS table.
Let me explain you want I am doing with command.
I have written command called DSUB, this will be same submit command, the only difference is my command will display valid accounts to select and changes the job's account code, then submits the job.
It is working fine from any screen in ISPF same as SUBMIT command. but it is not woking when in edit mode you change JCL and submit the job. It won't pickup the changes made to JCL until it is saved. My requirement is that if the user made change to JCL in edit mode it should pick the changes and submit the job with/without save.
To accoplish this I have to use EDIT macro or if you have any other method please do let me know.
Even if know the table name of EDIT panels ZDATA, it will help me.
Thanks,
Ravi |
|
| Back to top |
|
 |
MGIndaco
Moderator
Joined: 10 Mar 2005 Posts: 479 Location: Milan, Italy
|
|
|
|
Correct me if I'm wrong.
You try to submit a jcl with command DSUB(that you are owner) and in this phase you need to submit also the change that you do but without saving the member.
It's correct?
If is true I suppose that you can also work in a temporary dataset(ZTEMP in rexx but there is another way also in Clist with NOS) before submit. I think that all the change you do in a member will affect after a save...
But I can be wrong... |
|
| Back to top |
|
 |
RPatil
New User
Joined: 11 Jun 2005 Posts: 4
|
|
|
|
Your correct, I want SUBMIT job without saving member or dataset, but it has to pickup the changes when makes in VIEW or EDIT mode.
At present I copy the current dataset or member in EDIT mode or VIEW to temporary, but this is not picking any changes made to it until it issued SAVE.
I do not want to save the dataset or member, I just want to pickup the changes when user make change in EDIT or VIEW mode.
I tried to use ZTEMP in REXX as you suggested, but I am still not able to get changes. Please could you have more information on the ZTEMP or example.
Do you know how the EDIT panel stores data or does it uses the temp dataset or ISPF table to display in ZDATA, ZSHADOW variables of ISREDDE2 panel.
I do appreciate for your reply, suggestion
Thanks,
Ravi |
|
| Back to top |
|
 |
MGIndaco
Moderator
Joined: 10 Mar 2005 Posts: 479 Location: Milan, Italy
|
|
|
|
| I had look for a solution about your question but in each case I found that when you use a submit command, really, your job both in View and Edit mode is stored in a sequential dataset like USERID.SPFTEMPn.CNTL and so I think that you cannot avoid to save the job before submit it. |
|
| Back to top |
|
 |
RPatil
New User
Joined: 11 Jun 2005 Posts: 4
|
|
|
|
Thanks for the reply,
So I do not have solution for my problem.
Let me asking this, whe you edit a member display data in ZDATA dynamic area by using table name, Do you what is the table name for it?
OR
If know how to find ISPF table names used by ISPF, then this will help me.
Thanks,
Ravi |
|
| Back to top |
|
 |
|
|