View previous topic :: View next topic
|
Author |
Message |
pradeean
New User
Joined: 08 Jan 2013 Posts: 6 Location: india
|
|
|
|
Hi All,
I am new to this forum. I have one requirement which I would like to do using DFSORT instead of COBOL program. I have checked in DFSORT material to get the solution but I can able to see only Transpose related solutions. I have mentioned the requirement below. Please let me know if any solutions. Thanks in advance.
Input file: Rec length -80, Type-Fixed Block
Code: |
ABC DEF GHI COMMENT1
ABC DEF GHI COMMENT2
ABC DEF GHI COMMENT3
ABC DEF GHI COMMENT4
JKL MNO PQR COMMENT1
JKL MNO PQR COMMENT2
STU VWX YZA COMMENT3
STU VWX YZA COMMENT2
STU VWX YZA COMMENT3
BCD EFG HIJ COMMENT2
KLM NOP QRS COMMENT2
KLM NOP QRS COMMENT1
KLM NOP QRS COMMENT2
KLM NOP QRS COMMENT3
KLM NOP QRS COMMENT5
TUV WXY ZAB COMMENT1
TUV WXY ZAB COMMENT2
TUV WXY ZAB COMMENT3
TUV WXY ZAB COMMENT4
TUV WXY ZAB COMMENT5
TUV WXY ZAB COMMENT6
TUV WXY ZAB COMMENT7
|
Expected output: Rec length -500, Type-Fixed Block
(Should be take the maximum COMMENTS from input file is 5)
Code: |
ABC DEF GHI COMMENT1 COMMENT2 COMMENT3 COMMENT4
JKL MNO PQR COMMENT1 COMMENT2
STU VWX YZA COMMENT3 COMMENT2 COMMENT3
BCD EFG HIJ COMMENT2
KLM NOP QRS COMMENT2 COMMENT1 COMMENT2 COMMENT3 COMMENT5
TUV WXY ZAB COMMENT1 COMMENT2 COMMENT3 COMMENT4 COMMENT5
|
|
|
Back to top |
|
|
pradeean
New User
Joined: 08 Jan 2013 Posts: 6 Location: india
|
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Good searching. I believe there are a couple of more recent examples as well. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
Good job looking for and finding what you needed
Enjoy the forum!
d |
|
Back to top |
|
|
pradeean
New User
Joined: 08 Jan 2013 Posts: 6 Location: india
|
|
|
|
Thank you 'Bill Woodger' and 'dick scherrer'. |
|
Back to top |
|
|
|