Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to move zeros to a comp field, in VB file - Syncsort
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 Moderator


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

PostPosted: Tue Nov 27, 2007 12:29 am    Post subject:
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    Post subject:
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 Moderator


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

PostPosted: Tue Nov 27, 2007 12:46 am    Post subject:
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: 500
Location: USA

PostPosted: Tue Nov 27, 2007 1:06 am    Post subject:
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    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 SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 5 Sat Jan 21, 2017 4:02 am
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us