View previous topic :: View next topic
|
Author |
Message |
yogesh.jamdar
New User
Joined: 21 Apr 2006 Posts: 4 Location: USA
|
|
|
|
techies,
I have a tab delimted file with variable length (max 27924). It has minimum 29 records of diffferent layout (each line different). Each record is having data separated by TAB. Is there a way to convert this into FIXED length format (layuot available)??
Pls advise.
Yo |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Using REXX? Sure, the PARSE function will make easy work of it by using the tab character as the field delimiter. |
|
Back to top |
|
|
yogesh.jamdar
New User
Joined: 21 Apr 2006 Posts: 4 Location: USA
|
|
|
|
thanks..wanted to confirm..tried in Cobol by doing an unstring but was getting difficult...had to read to the file byte by byte......hope REXX helps... |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Just want to mention that this is also easily handled with products like SAS and DFSORT. |
|
Back to top |
|
|
|