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 Easytrieve - Report writing - Only 1 ... Abhi Nature CA Products 2 Wed Sep 14, 2016 11:40 am
No new posts Wildcard logic in COBOL dudenithy COBOL Programming 13 Thu Sep 01, 2016 7:36 pm
No new posts RACF Easytrieve Plus macro Susan Jackson CA Products 0 Fri Jun 03, 2016 8:25 pm
No new posts Sort Logic to extract data scorp_rahul23 DFSORT/ICETOOL 13 Tue Mar 01, 2016 1:22 am
No new posts Need a logic to validate the data in ... sandeep kumar302 COBOL Programming 17 Mon Feb 01, 2016 3:30 pm


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