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
 

 

Getting INREC - SHORT RECORD while copying VB file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Getting INREC - SHORT RECORD while copying VB file
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    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Fri Nov 18, 2011 12:51 pm    Post subject:
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    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Nov 18, 2011 2:28 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Nov 18, 2011 2:35 pm    Post subject:
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    Post subject:
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    Post subject:
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    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 Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


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