View previous topic :: View next topic
|
Author |
Message |
ch.sridhar
New User
Joined: 01 May 2006 Posts: 7 Location: INDIA, Mumbai
|
|
|
|
Hi,
I need to sort an input file that has a list of program names and while writing the output, I need to put these program names within brackets. The problem is some program names are 7 characters in lenght and some are 8 characters in lenght, so while trying to put brackets, for the 7 character program, I am getting a SPACE before closing the bracket.
Could some body advise as how to solve this using SYNCSORT and DFSORT? . I am trying to use ALTSEQ but its not working properly. |
|
Back to top |
|
|
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
|
|
ch.sridhar wrote: |
Hi,
I need to sort an input file that has a list of program names and while writing the output, I need to put these program names within brackets. The problem is some program names are 7 characters in lenght and some are 8 characters in lenght, so while trying to put brackets, for the 7 character program, I am getting a SPACE before closing the bracket.
Could some body advise as how to solve this using SYNCSORT and DFSORT? . I am trying to use ALTSEQ but its not working properly. |
Here is a DFSORT job which would give you the desired results. This job will take care of spaces
Code: |
//STEP0100 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD *
A
BB
CCC
DDDD
EEEEE
FFFFFF
GGGGGGG
HHHHHHHH
//SORTOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
INREC IFTHEN=(WHEN=INIT,
BUILD=(1,80,JFY=(LEAD=C'(',SHIFT=LEFT,TRAIL=C')')))
//*
|
and the output is
Code: |
(A)
(BB)
(CCC)
(DDDD)
(EEEEE)
(FFFFFF)
(GGGGGGG)
(HHHHHHHH)
|
Hope this helps... |
|
Back to top |
|
|
ch.sridhar
New User
Joined: 01 May 2006 Posts: 7 Location: INDIA, Mumbai
|
|
|
|
Hi,
I have tried previously with JFY and TRAIL options etc...but the sort step is abending. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You are using Syncsort. |
|
Back to top |
|
|
acevedo
Active User
Joined: 11 May 2005 Posts: 344 Location: Spain
|
|
|
|
yes, the WER messages belongs to SyncSort.
is Alissa registered in this forum? |
|
Back to top |
|
|
ch.sridhar
New User
Joined: 01 May 2006 Posts: 7 Location: INDIA, Mumbai
|
|
|
|
Hi,
Yes sorry I forgot to tell...I can use SYNCSORT only not DFSORT so is there any way I can do this with SYNCSORT.
Thanks,
Sridhar |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
is Alissa registered in this forum? |
Yes, she is. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Sridhar,
Kolusu's job works fine with DFSORT which has supported the JFY function since April, 2006. Syncsort does NOT support the JFY function. |
|
Back to top |
|
|
ch.sridhar
New User
Joined: 01 May 2006 Posts: 7 Location: INDIA, Mumbai
|
|
|
|
Frank,
Thanks for the response but I am not sure if my company has DFSORT or not...Could you please let me know if there is a way to handle this with SYNCSORT.
Thanks,
Sridhar |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
ch.sridhar wrote: |
Could you please let me know if there is a way to handle this with SYNCSORT. |
That will be up to someone from SYNCSORT to respond to. Please wait for their response, or contact their tech. support directly via their website. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Quote: |
Frank,
Thanks for the response but I am not sure if my company has DFSORT or not...Could you please let me know if there is a way to handle this with SYNCSORT. |
Kolusu and I are DFSORT developers. DFSORT and Syncsort are competitive products. We're happy to answer questions on DFSORT and DFSORT's ICETOOL, but we don't answer questions on Syncsort. |
|
Back to top |
|
|
|