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
 

 

Syncsort OUTREC error

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Syncsort OUTREC error
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: 2180
Location: @my desk

PostPosted: Thu Oct 28, 2010 8:19 pm    Post subject:
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    Post subject:
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: 2180
Location: @my desk

PostPosted: Fri Oct 29, 2010 1:48 pm    Post subject:
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    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 OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am


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