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
 

 

Need help on extending the record

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Need help on extending the record
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: 1445
Location: Azeroth

PostPosted: Wed Jan 21, 2015 7:29 pm    Post subject:
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    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Wed Jan 21, 2015 7:54 pm    Post subject: Reply to: Need help on extending the record
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: 1238
Location: Richfield, MN, USA

PostPosted: Wed Jan 21, 2015 7:55 pm    Post subject:
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: 1238
Location: Richfield, MN, USA

PostPosted: Wed Jan 21, 2015 7:57 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts sort with previous record anatol DFSORT/ICETOOL 9 Thu Oct 06, 2016 2:36 am
No new posts Get Record count in summary record fo... Atul Banke DFSORT/ICETOOL 21 Fri Sep 23, 2016 4:17 pm
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm


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