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
 
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: 8666
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: 8666
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 BAMAD file IO Error m1985nehal CICS 1 Fri May 25, 2018 11:51 am
No new posts Process file after 7 days of hold charlessxavier All Other Mainframe Topics 4 Tue May 22, 2018 3:54 pm
No new posts TRAILER3 is creating blank record in ... kodeesm DFSORT/ICETOOL 3 Fri May 18, 2018 5:45 pm
No new posts Transfer of mainframe file to PC in Z... maxsubrat JCL & VSAM 4 Thu May 17, 2018 11:35 am
No new posts Rexx command to open an another text ... Bharath Vikraman PC Guides & IT News 7 Sat May 12, 2018 4:34 pm

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