|
|
| Author |
Message |
shalinikota
New User
Joined: 25 Sep 2008 Posts: 2 Location: chennai
|
|
|
|
A Program will copy the JCL from One PDS to Another. After copying that JCL, want to change some parameters Like JOB card , JCLLIB and other parameters . Copy of Jcl is successful .Then tried to change the JOBCARD:
ISREDIT LOCATE .ZF
ISREDIT CHANGE ' JOB (*,*),'&USERID',MSGCLASS=X,CLASS=*, ' 9 55
ISREDIT LOCATE .ZF
ISREDIT CHANGE ' COND=(0,NE),NOTIFY=&SYSUID ' 9 55
this is showing an ERROR - 28 |
|
| Back to top |
|
 |
References
|
|
 |
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 1959 Location: Israel
|
|
|
|
You have to issue an EDIT or VIEW service (with the MACRO keyword) first, then use your code within the macro.
O. |
|
| Back to top |
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 3544 Location: Brussels once more ...
|
|
|
|
What you have shown is not REXX code, but ISPF edit code.
The usual way to do this is to issue the edit command for the dataset and then specify the macro that you will use to effect the changes.
"ISPEXEC EDIT DATASET('dataset name') MACRO(mac name)"
Where the macro name is a member concatenated into your SYSEXEC or SYSPROC DD, or added vial ALTLIB. |
|
| Back to top |
|
 |
Moved: Fri Oct 03, 2008 2:46 pm by superk From CLIST & REXX to TSO/ISPF |
Bill Dennis
Senior Member
Joined: 17 Aug 2007 Posts: 313 Location: Iowa, USA
|
|
|
|
Your CHANGE commands show a "from" value but no "to" value???
Also, check the syntax for changing a string containing single quotes! |
|
| Back to top |
|
 |
Atpsmp
New User
Joined: 23 Sep 2008 Posts: 9 Location: Chennai
|
|
|
|
Hi...
can anyone give the full code of this post. |
|
| Back to top |
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 3544 Location: Brussels once more ...
|
|
|
|
| Atpsmp wrote: |
Hi...
can anyone give the full code of this post. |
Do they not have any manuals at your shop ?
Please post your code and the errors that you are getting rather than just ask for code.
Anyway, you have posted a request for the same information in your own thread, so please, do not double post in other peoples topics. |
|
| Back to top |
|
 |
Atpsmp
New User
Joined: 23 Sep 2008 Posts: 9 Location: Chennai
|
|
|
|
Hi..
i dont know actually how to start up with the program. Zero idea regarding REXX. So only asked the code, which will be easy for me to analyse which will enhance my tool creation. |
|
| Back to top |
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 3544 Location: Brussels once more ...
|
|
|
|
| Click HERE to see a simple macro example. |
|
| Back to top |
|
 |
Anuj D.
Global Moderator
Joined: 22 Apr 2006 Posts: 2229 Location: Phoenix, AZ
|
|
|
|
| Atpsmp wrote: |
| Zero idea regarding REXX. |
If so, then even some one around provide you with the code - you won't be able to start with your next REXX assignment and Expat, may be, would not like to be this polite next time. You might like to check the links provided in this thread,
http://www.ibmmainframes.com/viewtopic.php?t=33525&highlight=rexx |
|
| Back to top |
|
 |
shalinikota
New User
Joined: 25 Sep 2008 Posts: 2 Location: chennai
|
|
|
|
Hi
Actually I am trying to modify the JCL using the command similar to the one you suggested
ISPEXEC EDIT DATASET('dataset name') MACRO(MODJCL)"
After opening the Jcl in EDIT mode. i need to Replace the JOB Card and some other parameters. which command can i use. |
|
| Back to top |
|
 |
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 1959 Location: Israel
|
|
|
|
How about the CHANGE command?
O. |
|
| Back to top |
|
 |
Atpsmp
New User
Joined: 23 Sep 2008 Posts: 9 Location: Chennai
|
|
|
|
HI.
Actually i tried with the change command..
But, it is is showing the error, too many parameters..
The change command is accepting only 20 characters...
I tried to change the entire job card too by passing the values through the variables, but it is in vain, showing the same error...
Can anyone help me how to change the entire job card? |
|
| Back to top |
|
 |
enrico-sorichetti
Global Moderator
Joined: 14 Mar 2007 Posts: 3168 Location: italy
|
|
|
|
Just curious,
what is the relation between shalinikota and altsmp,
they are both asking things in the same thread,
is this a case of a double personality, or just bad netiquette ( stepping in without reason in somebody else thread ) |
|
| Back to top |
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 3544 Location: Brussels once more ...
|
|
|
|
Post your macro here - it is showing error hardly enlightrens us
in fact that piece of information is about as useful as a chocolate teapot.
Unless we know what you are doing we can not possibly help you.
Also echo the interest of enrico - two people or two ids ? |
|
| Back to top |
|
 |
Atpsmp
New User
Joined: 23 Sep 2008 Posts: 9 Location: Chennai
|
|
|
|
Nothing relation between me and shalini kota..
We both facing the same issues...
i think we both are new users to rexx , to the forum and also the same location...
.. thats the similarity between us |
|
| Back to top |
|
 |
|
|