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

How to concatenate two fields in Eazytrieve


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
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
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
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 All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Partial Sort conditions for PD fields DFSORT/ICETOOL 16
No new posts Pull data using date difference betwe... DB2 6
No new posts Concatenate 2 input datasets and give... JCL & VSAM 2
No new posts Concatenate 2 fields (usage national)... COBOL Programming 2
No new posts Cobol COMP-2 fields getting scrambled... Java & MQSeries 6
Search our Forums:


Back to Top