View previous topic :: View next topic
|
Author |
Message |
NAGARJUN CARALAPATI
New User
Joined: 09 Oct 2007 Posts: 22 Location: chennai.India
|
|
|
|
I want to align the data present in the input as output.
Find my data details below.
Code: |
ASDF ASDFS COPY SDFSGWER
ASDF COPY SDFSGWSD
ASDF COPY SDFSGWAC
COPY SDFSGWSE
SDFSSDF COPY SDFSGWSD
SDF COPY SDFSGWAR
|
My desired output:
Code: |
SDFSGWER
SDFSGWSD
SDFSGWAC
SDFSGWSE
SDFSGWSD
SDFSGWAR
|
|
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
If you happen to have access to DFSORT, you can use the following DFSORT job to do what you asked for:
Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file
//SORTOUT DD DSN=... output file
//SYSIN DD *
OPTION COPY
INREC PARSE=(%01=(STARTAFT=C'COPY ',FIXLEN=8)),
BUILD=(%01)
/*
|
|
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
You will have to explain the "rules" for the conversion a little better...
The CHANGE subparameter might be what you need. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
I think, Franks' solution will not work for TS requirement. PARSE is not available in SyncSort (I tried to use it some time back, didn't work for me). |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Anuj,
Quote: |
think, Franks' solution will not work for TS requirement |
What is TS and why do u think so? Frank had posted a DFSORT job.
Quote: |
PARSE is not available in SyncSort (I tried to use it some time back, didn't work for me). |
A similar topic involviing PARSE/SYNCSORT was discussed few days ago.
http://ibmmainframes.com/viewtopic.php?t=24948 |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Yeah ..I'm aware of that thread. My motive was to make the TS aware about the gist of that thread, as subject line asks about SyncSort. I might have used
Quote: |
I think, Franks' solution may/may not not work for TS requirement, if his/her shop uses SyncSort |
then it would been be rather clear. |
|
Back to top |
|
|
|