View previous topic :: View next topic
|
Author |
Message |
Sureet Mookherjee
New User
Joined: 08 May 2009 Posts: 19 Location: India
|
|
|
|
I have a requirement like my input file contains records in this format
I/P file:
Sureet Mookherjee
Karthikeyan Raju
Pranab Mohanty
In the O/P file it should be:
Sureet
Karthikeyan
Pranab |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
Which sort product is used on your system? The informational output from a sort execution should show the product name and release level. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Sureet,
You can use a DFSORT job like the following to do what you asked for. Change FIXLEN=20 to whatever length you need.
Code: |
//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD *
Sureet Mookherjee
Karthikeyan Raju
Pranab Mohanty
/*
//SORTOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
INREC PARSE=(%01=(ENDBEFR=C' ',FIXLEN=20)),
BUILD=(%01)
/*
|
|
|
Back to top |
|
|
|