Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to Change the JOB CARD & JCLLIB in a JCL
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
Author Message
shalinikota

New User


Joined: 25 Sep 2008
Posts: 2
Location: chennai

PostPosted: Fri Oct 03, 2008 10:44 am    Post subject: How to Change the JOB CARD & JCLLIB in a JCL
Reply with quote

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

Global Moderator


Joined: 27 Dec 2005
Posts: 2039
Location: Israel

PostPosted: Fri Oct 03, 2008 11:31 am    Post subject:
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 3731
Location: Brussels once more ...

PostPosted: Fri Oct 03, 2008 11:34 am    Post subject:
Reply with quote

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
View user's profile Send private message
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: 333
Location: Iowa, USA

PostPosted: Fri Oct 03, 2008 7:12 pm    Post subject:
Reply with quote

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

New User


Joined: 23 Sep 2008
Posts: 9
Location: Chennai

PostPosted: Thu Oct 09, 2008 3:49 pm    Post subject: hI.. PROVIDE ME WITH THE FULL CODE
Reply with quote

Hi...

can anyone give the full code of this post.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3731
Location: Brussels once more ...

PostPosted: Thu Oct 09, 2008 4:00 pm    Post subject: Re: hI.. PROVIDE ME WITH THE FULL CODE
Reply with quote

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

New User


Joined: 23 Sep 2008
Posts: 9
Location: Chennai

PostPosted: Thu Oct 09, 2008 4:07 pm    Post subject: Hi
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 3731
Location: Brussels once more ...

PostPosted: Thu Oct 09, 2008 4:38 pm    Post subject:
Reply with quote

Click HERE to see a simple macro example.
Back to top
View user's profile Send private message
Anuj D.

Global Moderator


Joined: 22 Apr 2006
Posts: 2352
Location: Mumbai, India

PostPosted: Fri Oct 10, 2008 12:03 am    Post subject: Re: Hi
Reply with quote

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

New User


Joined: 25 Sep 2008
Posts: 2
Location: chennai

PostPosted: Mon Oct 13, 2008 6:23 pm    Post subject:
Reply with quote

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

Global Moderator


Joined: 27 Dec 2005
Posts: 2039
Location: Israel

PostPosted: Tue Oct 14, 2008 2:38 am    Post subject:
Reply with quote

How about the CHANGE command?

O.
Back to top
View user's profile Send private message
Atpsmp

New User


Joined: 23 Sep 2008
Posts: 9
Location: Chennai

PostPosted: Tue Oct 14, 2008 10:33 am    Post subject: Hi
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 3273
Location: italy

PostPosted: Tue Oct 14, 2008 11:33 am    Post subject: Reply to: How to Change the JOB CARD & JCLLIB in a JCL
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 3731
Location: Brussels once more ...

PostPosted: Tue Oct 14, 2008 11:53 am    Post subject:
Reply with quote

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

New User


Joined: 23 Sep 2008
Posts: 9
Location: Chennai

PostPosted: Tue Oct 14, 2008 11:54 am    Post subject: Hi
Reply with quote

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... icon_lol.gif
.. thats the similarity between us
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 HoursGoto page 1, 2  Next
Page 1 of 2