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

Syncsort OUTREC error


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

Active User


Joined: 17 May 2010
Posts: 175
Location: India

PostPosted: Thu Oct 28, 2010 6:54 pm
Reply with quote

I'm trying to copy records from a vb file to a fb file. I want to copy only first three fields,
Input file(VB) layout:
Code:

01 A.
    05 x1   pic s9(9) comp.
    05 y1   pic x.
    05 z1   pic x.
    05 filler pix x(200).
   

I want to copy x1,y1,z1 to the output file whose lrecl=11.

What i tried is,

Code:

  SORT FIELDS=COPY           
  OUTFIL FNAMES=SORTOUT,VTOF,
    OUTREC=(5,9,BI,9,1,A,9,1,A)


Its not working, instead its throwing an error as follows,

Quote:

$ORTPARM : DYNALLOC=(SYSDA,35)
SYSIN :
SORT FIELDS=COPY
OUTFIL FNAMES=SORTOUT,VTOF,
OUTREC=(5,9,BI,9,1,A,9,1,A)
*
WER161B ALTERNATE PARM USED
WER271A OUTFIL STATEMENT : NUMERIC FIELD ERROR
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE


Please help me.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Thu Oct 28, 2010 8:19 pm
Reply with quote

shankarm,

You seem to have used the wrong syntax, I guess it should work if modified as
Code:
//SYSIN DD *
   SORT FIELDS=COPY           
   OUTFIL FNAMES=SORTOUT,VTOF,
   OUTREC=(5,6)
Also the output LRECL is 6 and not 11. Your first field is 9-digit binary which occupies only 4 bytes.
Back to top
View user's profile Send private message
shankarm

Active User


Joined: 17 May 2010
Posts: 175
Location: India

PostPosted: Fri Oct 29, 2010 1:05 pm
Reply with quote

Thanks for the help Arun.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Fri Oct 29, 2010 1:48 pm
Reply with quote

You're welcome icon_smile.gif
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 Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
Search our Forums:

Back to Top