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
 

 

LOGIC in EASYTRIEVE!!

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: LOGIC in EASYTRIEVE!!
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    Post subject:
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

Site Director


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

PostPosted: Wed Sep 09, 2009 12:23 am    Post subject:
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    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 UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Easytrieve report shalem CA Products 4 Sun Feb 26, 2017 9:08 am
No new posts Need help in building a logic Benchwarmer All Other Mainframe Topics 4 Wed Feb 22, 2017 2:49 am
No new posts Easytrieve - Report writing - Only 1 ... Abhi Nature CA Products 2 Wed Sep 14, 2016 11:40 am


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