View previous topic :: View next topic
|
Author |
Message |
Vallabhaneni
New User
Joined: 30 Sep 2006 Posts: 5
|
|
|
|
I have a input file with data left justified from position 4 to 11 as below
Code: |
ABC550
QWE45670
SER1593
|
I Want to have the data changed in output file as below ( basically the data should be made right justified and have leading zeros in them)
Code: |
ABC00000550
QWE00045670
SER00001593
|
I tried below
Code: |
SYSIN :
OUTREC FIELDS=(1,3,4,8,JFY=(SHIFT=RIGHT))
*
SORT FIELDS=COPY
WER268A OUTREC STATEMENT : SYNTAX ERROR
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
|
thanks
Val |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Val, I've been sitting here trying to think of how to respond to your post. Although you've been a Forum member for a long time, you haven't actually done many posts. So, here's some suggestions:
1. Your post indicates, very clearly, that your code contains a syntax error. Usually, posters are not allowed to post code that contains blatant syntax errors. They should be reolved first before you ever post the code.
2. I presume the syntax error is the result of using the wrong parameter, or using the right parameter in the wrong way.
3. YOU have the responsibility of looking up the proper code syntax for YOUR software using YOUR site's product manuals. That process is NOT the forum's responsibility.
4. Don't repost a question if your original post has been moved to another forum. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
JFY is a DFSORT option. Syncsort does not support it.
Actually, you can do what you want with these control statements:
Code: |
OPTION COPY
INREC BUILD=(1,3,4,8,UFF,M11,LENGTH=8)
|
It works for DFSORT. It might work for Syncsort too. |
|
Back to top |
|
|
|