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: 7315

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: 7315

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: 7315

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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Translating Quotes Khadhar Basha CLIST & REXX 6 Tue May 09, 2017 11:52 am
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm


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