Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to concatenate two fields in Eazytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
johndhinagaran

New User


Joined: 09 Oct 2007
Posts: 2
Location: Chennai

PostPosted: Fri Nov 30, 2007 12:38 pm    Post subject: How to concatenate two fields in Eazytrieve
Reply with quote

Is there any keyword available for concatenation in easytrieve?

Input File:(LRECL 80)
------------------------
Apple
is a fruit

Expected output:(LRECL 160)
---------------------------------
Apple is a fruit

Note: Need to remove the trailing spaces in the first record
Back to top
View user's profile Send private message

johndhinagaran

New User


Joined: 09 Oct 2007
Posts: 2
Location: Chennai

PostPosted: Fri Nov 30, 2007 3:19 pm    Post subject: I got the answer
Reply with quote

I share it with you; it would be helpful for others.

We can use macro %CONCAT

syntax: %CONCAT <PART1> <N> <PART2>

<PART1> = Receiving field

<N> = No. of spaces inserted between two parts

<PART2> = part to be concatenated
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 Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts SORT 3 files,extract specific fields ... Kiransr DFSORT/ICETOOL 13 Fri Mar 23, 2018 10:54 am
No new posts Sum the fields in particular format f... sharana64 DFSORT/ICETOOL 9 Fri Jan 05, 2018 1:11 am
No new posts SORT BUT RETAIN HIGHEST VALUE ON NON-... leondan22 DFSORT/ICETOOL 2 Thu Dec 14, 2017 8:13 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us