Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Add Leading Zeros with right justify - Syncsort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Vallabhaneni

New User


Joined: 30 Sep 2006
Posts: 4

PostPosted: Thu Jun 21, 2007 11:19 pm    Post subject: Add Leading Zeros with right justify - Syncsort
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

Moderator Team Head


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

PostPosted: Fri Jun 22, 2007 1:05 am    Post subject: Re: Add Leading Zeros with right justify
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 Moderator


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

PostPosted: Fri Jun 22, 2007 1:28 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts editting the file by inserting zeros ... pramodrsingh DFSORT/ICETOOL 9 Mon Aug 21, 2017 5:58 pm
No new posts Format record to remove Leading zeroes Learncoholic DFSORT/ICETOOL 14 Wed Apr 05, 2017 2:43 pm
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us