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
 

 

Moving Quotes(') to a variable in Eztrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
Elixir

Active User


Joined: 08 Feb 2009
Posts: 116
Location: CHENNAI/NEW JERSEY - INDIA/USA

PostPosted: Wed Jan 25, 2012 9:14 pm    Post subject: Moving Quotes(') to a variable in Eztrieve
Reply with quote

Hello,

I am facing an issue while moving Quotes (') to a variable in Eztrieve.

I tried "'", but is not working.

I know this is a basic question, tried looking into manual but could not find it.

Please let me know how to move it.
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7254

PostPosted: Wed Jan 25, 2012 9:16 pm    Post subject: Reply to: Moving Quotes(') to a variable in Eztrieve
Reply with quote

Please let us know how it is not working. Run time? Compile time? What message/evidence?
Back to top
View user's profile Send private message
Elixir

Active User


Joined: 08 Feb 2009
Posts: 116
Location: CHENNAI/NEW JERSEY - INDIA/USA

PostPosted: Wed Jan 25, 2012 9:19 pm    Post subject: Re: Reply to: Moving Quotes(') to a variable in Eztrieve
Reply with quote

Bill Woodger wrote:
Please let us know how it is not working. Run time? Compile time? What message/evidence?

MOVE "'" TO WS-VA1
*******B132 APOSTROPHE NOT PRECEDED BY SPACE
*******B031 UNBALANCED APOSTROPHES
*******B082 NAME IS UNDEFINED - "
*******B036 NUMBER MUST BE POSITIVE INTEGER - " TO WS-VA1
*******B026 REQUIRED PARAMETER IS NOT CODED
MOVE "'" TO WS-VA2
*******B132 APOSTROPHE NOT PRECEDED BY SPACE
*******B031 UNBALANCED APOSTROPHES
*******B082 NAME IS UNDEFINED - "
*******B036 NUMBER MUST BE POSITIVE INTEGER - " TO WS-VA2
*******B026 REQUIRED PARAMETER IS NOT CODED

WS-VA1/2 is Alphanumeric
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7254

PostPosted: Wed Jan 25, 2012 9:42 pm    Post subject: Reply to: Moving Quotes(') to a variable in Eztrieve
Reply with quote

Unless you can find a PARM option to change it, Easytrieve encloses literals in apostrophes (single quotation marks) and they must always "pair up".

This might give you what you want:

Code:
 WS-VA1 = ''''


If not, try '''. Or you could define a hexadecimal value for a field to represent your apostrophe.

Code:
W-APOST S 1 A VALUE X'7D'

WS-VA1 = W-APOST


From your messages it would look like WS-VA1/2 are numeric, but it may be that you sorely confused the compiler.

I can't test these myself, as no access to Easytrieve.
Back to top
View user's profile Send private message
Elixir

Active User


Joined: 08 Feb 2009
Posts: 116
Location: CHENNAI/NEW JERSEY - INDIA/USA

PostPosted: Fri Jan 27, 2012 11:32 pm    Post subject:
Reply with quote

Worked fine. Thanks! icon_biggrin.gif
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7254

PostPosted: Fri Jan 27, 2012 11:45 pm    Post subject:
Reply with quote

Which did you use? I know the X'' would work, but did you get some number of quotes to work and if so, how many?
Back to top
View user's profile Send private message
Elixir

Active User


Joined: 08 Feb 2009
Posts: 116
Location: CHENNAI/NEW JERSEY - INDIA/USA

PostPosted: Sat Jan 28, 2012 1:01 am    Post subject:
Reply with quote

Bill Woodger wrote:
Which did you use? I know the X'' would work, but did you get some number of quotes to work and if so, how many?


I used MOVE X'7D' to Variable ==> It moved Single Quotes (') into variable.

This was what I needed
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 -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Moving a PD to PD spoorni DFSORT/ICETOOL 8 Fri Oct 07, 2016 9:52 pm
No new posts Format to pipe delimited with variabl... pshongal SYNCSORT 6 Wed Sep 14, 2016 2:48 pm
No new posts Variable for cursor names ravikumar15 DB2 5 Sun Jul 17, 2016 7:08 am
No new posts Moving character data to smallint in db2 rikdeb DB2 5 Thu Jul 14, 2016 12:38 am
No new posts OPC JCL Variable passion_sujesh IBM Tools 5 Fri Jul 01, 2016 4:21 am


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