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

How to move zeros to a comp field, in VB file - Syncsort


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

New User


Joined: 14 Sep 2005
Posts: 21

PostPosted: Tue Nov 27, 2007 12:25 am
Reply with quote

Hi,

I have a VB file (LRECL=9917 including the 4 bytes).
I am trying to move zeroes to the positions 279-284 and 285-290 (with field defined are S9(9)99 COMP-3) and the rest of the input file as it is.

So, my code is as follows:

Code:
OUTFIL OUTREC=(1:1,278,     
               279:6Z,     
               285:6Z,     
               291:18X,     
               309:309,2,   
               311:311,9603)


I am getting the error as:OUTREC is shorter in length.
Do I need to mention the RDW in the SORT also? If so how?
Can somebody help?
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: Tue Nov 27, 2007 12:29 am
Reply with quote

What is the exact error message you're receiving (message number and full text)?
Back to top
View user's profile Send private message
hcl_ln

New User


Joined: 14 Sep 2005
Posts: 21

PostPosted: Tue Nov 27, 2007 12:34 am
Reply with quote

Here is the exact error message Frank.

Code:
WER108I  SORTIN   : RECFM=VB   ; LRECL=  9917; BLKSIZE= 27998
WER110I  SORTOUT  : RECFM=VB   ; LRECL=  9917; BLKSIZE= 27998
WER244A  SORTOUT  OUTREC - SHORT RECORD                     
WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000               
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: Tue Nov 27, 2007 12:46 am
Reply with quote

The WER messages indicate you're using Syncsort, not DFSORT. Superk has moved your thread to the JCL Forum.
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Tue Nov 27, 2007 1:06 am
Reply with quote

hcl_ln,

If you do not have any records shorter than 311, then you can use the following:
Code:

OUTFIL OUTREC=(1:1,278,     
               279:6Z,     
               285:6Z,     
               291:18X,     
               309:309,2,   
               311:311)

However, if you do not know the length of your shortest record, you can use HISTOGRM to determine this.
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Compare only first records of the fil... SYNCSORT 7
Search our Forums:

Back to Top