IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

query to unstring in easytrieve


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gaullil

New User


Joined: 13 Jan 2009
Posts: 1
Location: india

PostPosted: Mon Jun 01, 2009 3:27 pm
Reply with quote

Hi guys,

i have written a cobol program and used 'unstring' and 'delimited' verb to break a decimal quantity as i wanted to use only the value before the decimal. eg:

UNSTRING QUANTITY DELIMITED BY '.' INTO TEMP-C1 TEMP-C2


now i need to incorporate the same changes in an easytrive program...
i am new to easytrieve... please suggest an equivalent verb or function to break the decimal field in two parts- before and after decimal.
thank u in advance
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jun 01, 2009 9:57 pm
Reply with quote

Hello,

One way is to define an array for the input and 2 arrays for the output and create the needed output looping thru the input one character at a time.

I'm not aware of an individual Easytrieve command/functoin that will do this.

The duplicate post has been removed.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts RC query -Time column CA Products 3
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
No new posts Issue with EXEC CICS QUERY SECURITY c... CICS 6
Search our Forums:

Back to Top