Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Data with Ampersand not getting written

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
srajendran2

New User


Joined: 13 May 2008
Posts: 43
Location: Chennai

PostPosted: Wed Apr 18, 2012 9:56 pm    Post subject: Data with Ampersand not getting written
Reply with quote

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

Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Wed Apr 18, 2012 10:56 pm    Post subject: Reply to: Data with Ampersand not getting written
Reply with quote

Ampersand is one of those strange characters. Try specifying two Ampersands instead of one....
Back to top
View user's profile Send private message
srajendran2

New User


Joined: 13 May 2008
Posts: 43
Location: Chennai

PostPosted: Wed Apr 18, 2012 10:57 pm    Post subject: single quote also
Reply with quote

I also need to include single quote before and after the variable INP5 in the output.
Back to top
View user's profile Send private message
srajendran2

New User


Joined: 13 May 2008
Posts: 43
Location: Chennai

PostPosted: Wed Apr 18, 2012 10:59 pm    Post subject: Re: Reply to: Data with Ampersand not getting written
Reply with quote

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

New User


Joined: 13 May 2008
Posts: 43
Location: Chennai

PostPosted: Wed Apr 18, 2012 11:05 pm    Post subject: SCAN OFF
Reply with quote

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

Active Member


Joined: 01 Dec 2006
Posts: 646
Location: Pennsylvania

PostPosted: Wed Apr 18, 2012 11:08 pm    Post subject:
Reply with quote

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

New User


Joined: 13 May 2008
Posts: 43
Location: Chennai

PostPosted: Wed Apr 18, 2012 11:53 pm    Post subject:
Reply with quote

i used CHANGE ALL command to get this done. Thanks for all your suggestions
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us