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

LOGIC in EASYTRIEVE!!


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

New User


Joined: 10 Jul 2006
Posts: 23

PostPosted: Sat Sep 05, 2009 5:37 pm
Reply with quote

I have a field with values 12,234,123 i need to convert this into 12234123 format(eliminating the commas).. How will I do this in eazytrieve ?


and also how to supress leading zeros in easytrieve if the value which i am moving in is a comp variable to a host variable.
Back to top
View user's profile Send private message
kratos86

Active User


Joined: 17 Mar 2008
Posts: 148
Location: Anna NGR

PostPosted: Tue Sep 08, 2009 2:25 pm
Reply with quote

Quote:
have a field with values 12,234,123 i need to convert this into 12234123 format(eliminating the commas).. How will I do this in eazytrieve ?

If the input is in same format of what u showed. Declare a group variable to read the input into peices and move those values to o/p excluding the commas
Quote:
and also how to supress leading zeros in easytrieve if the value which i am moving in is a comp variable to a host variable.

Use edit MASK option to suppress the leading zeros
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: Wed Sep 09, 2009 12:23 am
Reply with quote

Hello,

Is this now working?

If not yet, you might consider redefining the "input" as an array of 1-byte entries and loop thru the array from the right building the value you want. This will help if the length is not constant. . .
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 Finding faulty logic Subscript out of... COBOL Programming 5
No new posts Count the number of characters in a f... CA Products 1
No new posts File matching functionality in Easytr... DFSORT/ICETOOL 14
This topic is locked: you cannot edit posts or make replies. Need assistance in job scheduling logic. Mainframe Interview Questions 2
No new posts Rexx Logic error while adding seperat... CLIST & REXX 3
Search our Forums:

Back to Top