View previous topic :: View next topic
|
Author |
Message |
Sridhar R
New User
Joined: 11 Dec 2010 Posts: 20 Location: India
|
|
|
|
When I submit a job from REXX thru ISPF panels, job got submitted but when agian if i submit the same job or some different job without coming out of my panel im getting below error. how to fix this?
Error :
Parameter 'SYS12251.T063918.RA000.EVSXR29.R0317765' exceeds the allowable
length.
Current dialog statement:
vget (SYS12251.T063918.RA000.EVSXR29.R0317765) shared
My Code is :
mem_name = 'JCLABC'
"ftopen temp"
"ftincl "mem_name
"ftclose"
"vget ("ztempf") shared"
address tso
"submit '"ztempf"'"
[/img] |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
ztempf is a variable name, so the code should be:
"vget (ztempf) shared" |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
c /"vget ("ztempf") shared"/"vget (ztempf)"/* |
|
Back to top |
|
|
Sridhar R
New User
Joined: 11 Dec 2010 Posts: 20 Location: India
|
|
|
|
thats fine when i submit first time its working fine without any error. But if try to submit a job again without coming out of the panel its giving the above error.
Please guide me how to fix that |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You were told how to change the code (twice).
Have you done this? What happened? If there is still a problem, post the output of a trace. |
|
Back to top |
|
|
Sridhar R
New User
Joined: 11 Dec 2010 Posts: 20 Location: India
|
|
|
|
I have tried but...
Below is my output still :
Parameter 'SYS12251.T063918.RA000.EVSXR29.R0317765' exceeds the allowable length. |
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
Your code works by coincidence the first time because the uninitialized value of the variable ZTEMPF is "ZTEMPF". It fails on the second attempt because a value has been assigned to ZTEMPF.
Follow the advice you have been given. In particular, pay attention to the quotation marks. In rexx, they are very important.
Also, follow my usual advice to use HILITE REXX to help you distinguish constants from variables. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
I don't see trace output?
If it works one time and fails the second, it is likely the code is corrupting something.
If the code is not long, posting it may help someone help you. |
|
Back to top |
|
|
|