View previous topic :: View next topic
|
Author |
Message |
srajendran2
New User
Joined: 13 May 2008 Posts: 56 Location: Chennai
|
|
|
|
Hi,
I have a data which has "&" in it. When i try to write the data, the characters next to & (which is DSN= in my case) is not getting written to output. Please find below the Macro. Could you please let me know how this can be resolved?
Code: |
ADDRESS ISPEXEC
"CONTROL ERRORS RETURN"
"VGET (INP3) SHARED"
"VGET (INP4) SHARED"
"VGET (INP5) SHARED"
LINE1 = "' SUBMIT PROC=AAAAAAAA -'"
LINE2 = "' NEWNAME="INP3"'"
LINE3 = "' &DSN1="INP4"'"
LINE4 = "' &DSN2="INP5"'"
LINE5 = "' CASE=YES -'"
LINE6 = "' HOLD=NO'"
ADDRESS ISREDIT
"MACRO (CNDUPDT)"
"CAPS OFF"
"LINE .ZF = "LINE1""
"LINE_AFTER .ZL = "LINE2""
"LINE_AFTER .ZL = "LINE3""
"LINE_AFTER .ZL = "LINE4""
"LINE_AFTER .ZL = "LINE5""
"LINE_AFTER .ZL = "LINE6""
"SAVE"
ADDRESS ISREDIT "END" |
|
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Ampersand is one of those strange characters. Try specifying two Ampersands instead of one.... |
|
Back to top |
|
|
srajendran2
New User
Joined: 13 May 2008 Posts: 56 Location: Chennai
|
|
|
|
I also need to include single quote before and after the variable INP5 in the output. |
|
Back to top |
|
|
srajendran2
New User
Joined: 13 May 2008 Posts: 56 Location: Chennai
|
|
|
|
Bill O'Boyle wrote: |
Ampersand is one of those strange characters. Try specifying two Ampersands instead of one.... |
double Ampersand also did not work |
|
Back to top |
|
|
srajendran2
New User
Joined: 13 May 2008 Posts: 56 Location: Chennai
|
|
|
|
I coded SCAN OFF and then had &&. It was working.
Could you please let me know how i can include single quote before and after the variable INP5 |
|
Back to top |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
You have so many quotes it is hard to follow.
Would this work:
Code: |
"LINE_AFTER .ZL = "LINE2 |
Why the single quotes here:
Code: |
LINE1 = "' SUBMIT PROC=AAAAAAAA -'" |
also try
Code: |
Q1 = "'"
INP5 = Q1||INP5||Q1 |
Finally, if this is related to your earlier post, I would not use an edit marco like your are, but that is just my 25 years of experience talking, nothing more. |
|
Back to top |
|
|
srajendran2
New User
Joined: 13 May 2008 Posts: 56 Location: Chennai
|
|
|
|
i used CHANGE ALL command to get this done. Thanks for all your suggestions |
|
Back to top |
|
|
|