IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Add Leading Zeros with right justify - Syncsort


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Vallabhaneni

New User


Joined: 30 Sep 2006
Posts: 5

PostPosted: Thu Jun 21, 2007 11:19 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Jun 22, 2007 1:05 am
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Fri Jun 22, 2007 1:28 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Keep leading zero(s) after convert fl... SYNCSORT 7
No new posts Remove leading zeroes SYNCSORT 4
No new posts leading spaces can be removed in trai... DFSORT/ICETOOL 1
No new posts Count Records with a crietaria in a f... DFSORT/ICETOOL 5
Search our Forums:

Back to Top