View previous topic :: View next topic
|
Author |
Message |
oerdgie
New User
Joined: 22 Nov 2007 Posts: 64 Location: Germany
|
|
|
|
Hi Folks,
I've a problem with ISREDIT CHANGE and a start column :
Code: |
"CHANGE '"StrOld"' '"StrNew"' 1 ALL" |
works
Code: |
col = 1
"CHANGE '"StrOld"' '"StrNew"' "col" ALL" |
doesn't work
Do you have any ideas what is wrong ?
Thanks in advance |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Best guess is the quotes around col in your command. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
telling does not work is not really enough for the problem determination
JUST TESTED
Code: |
...
000025 fr = " "
000026 to = "x"
000027 col = 72
000028 Address ISREDIT "CHANGE '"fr"' '"to"' "col" all"
...
|
works for me
and this
Code: |
fr = " "
to = "x"
c1 = 72
c2 = ""
Address ISREDIT "CHANGE '"fr"' '"to"' "c1 c2" all"
|
and this
Code: |
fr = " "
to = "x"
c1 = 72
c2 = 73
Address ISREDIT "CHANGE '"fr"' '"to"' "c1 c2" all"
|
|
|
Back to top |
|
|
oerdgie
New User
Joined: 22 Nov 2007 Posts: 64 Location: Germany
|
|
|
|
Yes, it works for me too.
My macro is called by a REXX (Batch).
Parameters (incl. the column) for the macro are read from a file within the JCL. The last parameter in the file is the column.
I forgot to remove the line numbers on the right site of the file.
As a result I got the column and the line number passing from the Rexx to the macro.
This was the problem, my mistake.
Many thanks for help ! |
|
Back to top |
|
|
|