MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using overlay on VB records in DFSORT

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
hchinnam
Beginner


Joined: 04 Feb 2005
Posts: 31
Topics: 10

PostPosted: Fri Sep 12, 2008 11:53 am    Post subject: Using overlay on VB records in DFSORT Reply with quote

All,

I have following control card in a sort


Code:



  OUTFIL FNAMES=OUT,                                   
  INCLUDE=(5,3,CH,EQ,C'000')                           
  OUTFIL FNAMES=CTL3IN02,                             
  INCLUDE=(5,3,CH,NE,C'000',AND,1,3,CH,NE,C'999'),     
  BUILD=(1:1,3914,3915:C'Y')                           
  OUTFIL FNAMES=TRL,SAVE     



I know it looks a bit funny the way I handled includes, leaving it out this job is failing with following error

Code:


ICE218A 3 2217 BYTE VARIABLE RECORD IS SHORTER THAN 3914 BYTE MINIMUM FOR CTL3IN02 FIELDS 




My input file is VB. I think this error is because I am asking sort to copy 3914 bytes irrespective of input record length. If input has a rec shorter than 3914 it fails.

Can some one help me soving this please.

Thanks,
Harsha Chinnam
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Sep 12, 2008 12:28 pm    Post subject: Reply with quote

hchinnam,

Use overlay instead of build to pad with space till 3914 for shorter records. I believe that you want to check 5,3, for 999 and not 1,3

Quote:

OUTFIL FNAMES=OUT,
INCLUDE=(5,3,CH,EQ,C'000')
OUTFIL FNAMES=CTL3IN02,
INCLUDE=(5,3,CH,NE,C'000',AND,1,3,CH,NE,C'999'),
OVERLAY=(3915:C'Y')
OUTFIL FNAMES=TRL,SAVE

_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
hchinnam
Beginner


Joined: 04 Feb 2005
Posts: 31
Topics: 10

PostPosted: Fri Sep 12, 2008 2:41 pm    Post subject: Reply with quote

Thanks Kolusu.

Actually before your post i did this

Code:


  INREC OVERLAY=(3915:C'Y') 
  OUTFIL FNAMES=OUT,                                   
  INCLUDE=(5,3,CH,EQ,C'000'),
  BUILD=(1,3914)                           
  OUTFIL FNAMES=CTL3IN02,                             
  INCLUDE=(5,3,CH,NE,C'000',AND,5,3,CH,NE,C'999')                   
  OUTFIL FNAMES=TRL,SAVE,
  BUILD=(1,3914)           



bonk bonk bonk bonk bonk bonk
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group