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
 
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 Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm

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