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: 19243
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 All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts DB2 Query to get the count of Unique ... DB2 2
No new posts IBM IMU Utility for Easytrieve Code t... IBM Tools 0
No new posts To Unstring spaces in a field COBOL Programming 3
No new posts Need help with ADABAS query (COBOL-AD... All Other Mainframe Topics 1
No new posts Overwriting SSN Digits in Easytrieve ... CA Products 0
Search our Forums:


Back to Top