View previous topic :: View next topic
|
Author |
Message |
scorp_rahul22 Currently Banned New User
Joined: 06 Aug 2007 Posts: 42 Location: chennai
|
|
|
|
I want to parse string from input file
INPUT FILE (VARIABLE LENGTH)
-----------------------------------------
a b c d e fg hikl
OUTPUT
---------
I need to break above line into number of lines whenever space is encountered.(It can be one space as well as many spaces)
I want output as
a
b
c
d
e
fg
hikl
I want to know is this possible in SORT |
|
Back to top |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
is SORT the mandatory way? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Certainly possible in REXX |
|
Back to top |
|
|
scorp_rahul22 Currently Banned New User
Joined: 06 Aug 2007 Posts: 42 Location: chennai
|
|
|
|
its not mandatory to do in SORT, but i am looking either in SORT , COBOL, EASYTRIEVE only |
|
Back to top |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
Check in REXX with Words |
|
Back to top |
|
|
scorp_rahul22 Currently Banned New User
Joined: 06 Aug 2007 Posts: 42 Location: chennai
|
|
|
|
I dont want the code in REXX |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Use Cobol and have look in the Cob-Section, where you posted the same question.
If you don't like Cobol. use Assembler ! |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Rahul,
What is the RECFM and LRECL of your input file? What do you want for the RECFM and LRECL of your output file?
What is the maximum number of fields in a record - your example shows 7 fields - how many can there actually be?
What is the maximum length of a field?
Is there only one record in the input file or can there be more than one? |
|
Back to top |
|
|
|