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

Getting INREC - SHORT RECORD while copying VB file


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

New User


Joined: 19 Aug 2010
Posts: 47
Location: Hyderabad

PostPosted: Fri Nov 18, 2011 12:11 pm
Reply with quote

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
View user's profile Send private message
kratos86

Active User


Joined: 17 Mar 2008
Posts: 148
Location: Anna NGR

PostPosted: Fri Nov 18, 2011 12:37 pm
Reply with quote

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
View user's profile Send private message
Rambhupalchowdary

New User


Joined: 19 Aug 2010
Posts: 47
Location: Hyderabad

PostPosted: Fri Nov 18, 2011 12:44 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Nov 18, 2011 12:51 pm
Reply with quote

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
View user's profile Send private message
Rambhupalchowdary

New User


Joined: 19 Aug 2010
Posts: 47
Location: Hyderabad

PostPosted: Fri Nov 18, 2011 1:01 pm
Reply with quote

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
View user's profile Send private message
kratos86

Active User


Joined: 17 Mar 2008
Posts: 148
Location: Anna NGR

PostPosted: Fri Nov 18, 2011 2:08 pm
Reply with quote

This will do...

Code:
 OPTION COPY
OUTFIL BUILD=(1,13,124,16,14,110,140,15865),VLFILL=C' '
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Nov 18, 2011 2:28 pm
Reply with quote

I believe that VLSHRT is a DFSORT parameter
Back to top
View user's profile Send private message
kratos86

Active User


Joined: 17 Mar 2008
Posts: 148
Location: Anna NGR

PostPosted: Fri Nov 18, 2011 2:31 pm
Reply with quote

Yes, VLSHRT is a DFSORT parameter but it also works with SYNCSORT.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Nov 18, 2011 2:35 pm
Reply with quote

Gosh, even us old dogs still learn things icon_lol.gif
Back to top
View user's profile Send private message
kratos86

Active User


Joined: 17 Mar 2008
Posts: 148
Location: Anna NGR

PostPosted: Fri Nov 18, 2011 2:38 pm
Reply with quote

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 icon_smile.gif
Back to top
View user's profile Send private message
Rambhupalchowdary

New User


Joined: 19 Aug 2010
Posts: 47
Location: Hyderabad

PostPosted: Fri Nov 18, 2011 3:06 pm
Reply with quote

Thanks Kratos,

Its working fine.
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 Binary File format getting change whi... All Other Mainframe Topics 5
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top