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 splitting of file using XMITIP abdulrafi TSO/ISPF 3 Mon Mar 27, 2017 3:01 pm
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm


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