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

Need help on extending the record


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Pinchoo

New User


Joined: 22 Nov 2005
Posts: 8
Location: hyderabad

PostPosted: Wed Jan 21, 2015 6:19 pm
Reply with quote

I have four flat files with RECL 80, and i want to combine the records of all the four files into one. Threre's no key and no specific condition.. i just want the records of different files as columns of single file.

Input File 1:
Code:
A1
B1
C1


Input File 2:
Code:
A2
B2
C2
D2


Input File 3:
Code:
A3
B3
C3



Input File 4:
Code:
A4
B4
D4

Output file should be

Code:
A1 A2 A3 A4
B1 B2 B3 B4
C1 C2 C3 D4
   D2


Thanks! in advance for helping

Code'd
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1689
Location: Tiruppur, India

PostPosted: Wed Jan 21, 2015 7:29 pm
Reply with quote

Hello,

Is the output file like this

Code:
A1 A2 A3 A4
B1 B2 B3 B4
C1 C2 C3 D4
D2


or like this?
Code:
A1 A2 A3 A4
B1 B2 B3 B4
C1 C2 C3 D4
   D2


Please use code tags.
Back to top
View user's profile Send private message
Pinchoo

New User


Joined: 22 Nov 2005
Posts: 8
Location: hyderabad

PostPosted: Wed Jan 21, 2015 7:47 pm
Reply with quote

i am looking for ouput like the second option..
No reformatting required.. the records from the files as it is
Back to top
View user's profile Send private message
Pinchoo

New User


Joined: 22 Nov 2005
Posts: 8
Location: hyderabad

PostPosted: Wed Jan 21, 2015 7:48 pm
Reply with quote

Code:

**********************
A1 A2 A3 A4           
B1 B2 B3 B4           
C1 C2 C3 D4           
    D2               
**********************
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Moderator


Joined: 14 Mar 2007
Posts: 10714
Location: italy

PostPosted: Wed Jan 21, 2015 7:54 pm
Reply with quote

did You notice the formatting of the replies You received ???

learn to use the code tags

what is included in the code tags will be displayed with a fixed font and will preserve the spacing

5 blanks and XXXXX

without
12345
XXXXX

with
Code:
12345
     XXXXX


it will make easier for everybody to understand the record layouts
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Jan 21, 2015 7:55 pm
Reply with quote

Pinchoo,
Click the Code button, key or paste your data, click the Code* button, click Preview to see how it looks, click Submit when satisfied:
Code:
**********************
A1 A2 A3 A4
B1 B2 B3 B4
C1 C2 C3 D4
D2
**********************
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Jan 21, 2015 7:57 pm
Reply with quote

Click FAQ and read about BBCode.
Back to top
View user's profile Send private message
Pinchoo

New User


Joined: 22 Nov 2005
Posts: 8
Location: hyderabad

PostPosted: Wed Jan 21, 2015 8:22 pm
Reply with quote

Thanks! i'll take care of this for future posts..
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Record count of RECFM=U tape file DFSORT/ICETOOL 17
No new posts Checking the total counts inside a re... JCL & VSAM 5
This topic is locked: you cannot edit posts or make replies. Splice JCL into one record for DD sta... SYNCSORT 2
No new posts Copying data from prev record using SORT SYNCSORT 19
No new posts Break a record into fields, each fiel... SYNCSORT 2
Search our Forums:

Back to Top