View previous topic :: View next topic
|
Author |
Message |
Rambhupalchowdary
New User
Joined: 19 Aug 2010 Posts: 47 Location: Hyderabad
|
|
|
|
Hi all,
I am getting INREC - SHORT RECORD error while copying VB file.
Total reclen including RDW is 16004
I want to insert 16 digits data from 124 position to 14th position and remaining data move to right side.
Below is my sort card
Code: |
//SYSIN DD *
OPTION COPY
INREC BUILD=(1,13,124,16,14,110,140,15865)
/* |
Below is the error am getting in spool
I tried using VLSHRT , still same error.
SYSIN :
Code: |
OPTION COPY
INREC BUILD=(1,13,124,16,14,110,140,15865)
WER276B SYSDIAG= 11471559, 14488620, 14488620, 5340075
WER164B 6,884K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER164B 0 BYTES RESERVE REQUESTED, 2,325,392 BYTES USED
WER146B 32K BYTES OF EMERGENCY SPACE ALLOCATED
WER108I SORTIN : RECFM=VB ; LRECL= 16004; BLKSIZE= 27998
WER257I INREC RECORD LENGTH = 16004
WER110I SORTOUT : RECFM=VB ; LRECL= 16004; BLKSIZE= 32760
WER410B 5,856K BYTES OF VIRTUAL STORAGE AVAILABLE ABOVE THE 16MEG LINE,
WER410B 0 BYTES RESERVE REQUESTED, 2,198,416 BYTES USED
WER244A INREC - SHORT RECORD
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
|
Please help me is there any option i can include to make this work.
Thanks,
Ram. |
|
Back to top |
|
|
kratos86
Active User
Joined: 17 Mar 2008 Posts: 148 Location: Anna NGR
|
|
|
|
Please use the search facility provided in the forum. You will find various useful topics. Try all possible options discussed and let us know if you still face any issues. |
|
Back to top |
|
|
Rambhupalchowdary
New User
Joined: 19 Aug 2010 Posts: 47 Location: Hyderabad
|
|
|
|
Hi Kratos,
I tried below sort card also, still same error
Code: |
//SYSIN DD *
OPTION COPY,VLSHRT
INREC BUILD=(1,13,124,16,14,110,140,15865)
/* |
Thanks,
Ram. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Before I attempt to answer about the WER244A, please tell us - do you know what do you want do with short records? |
|
Back to top |
|
|
Rambhupalchowdary
New User
Joined: 19 Aug 2010 Posts: 47 Location: Hyderabad
|
|
|
|
I would like to get the data same as in input file for the respective positions.
or else spaces also fine for the short fields.
Thanks,
Ram. |
|
Back to top |
|
|
kratos86
Active User
Joined: 17 Mar 2008 Posts: 148 Location: Anna NGR
|
|
|
|
This will do...
Code: |
OPTION COPY
OUTFIL BUILD=(1,13,124,16,14,110,140,15865),VLFILL=C' ' |
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I believe that VLSHRT is a DFSORT parameter |
|
Back to top |
|
|
kratos86
Active User
Joined: 17 Mar 2008 Posts: 148 Location: Anna NGR
|
|
|
|
Yes, VLSHRT is a DFSORT parameter but it also works with SYNCSORT. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Gosh, even us old dogs still learn things |
|
Back to top |
|
|
kratos86
Active User
Joined: 17 Mar 2008 Posts: 148 Location: Anna NGR
|
|
|
|
Na... i learned it from one of the discussions you people had two years back on similar topic. Its just you need to recollect it |
|
Back to top |
|
|
Rambhupalchowdary
New User
Joined: 19 Aug 2010 Posts: 47 Location: Hyderabad
|
|
|
|
Thanks Kratos,
Its working fine. |
|
Back to top |
|
|
|