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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Concatenate 2 fields (usage national)... COBOL Programming 2
No new posts Cobol COMP-2 fields getting scrambled... Java & MQSeries 6
No new posts Converting unpacked fields to pack us... SYNCSORT 4
No new posts Data for newly added fields not displ... IMS DB/DC 6
This topic is locked: you cannot edit posts or make replies. SUM FIELDS=NONE in reverse - Get dupl... DFSORT/ICETOOL 9
Search our Forums:

Back to Top