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
 
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: 2285
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: 2285
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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am

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