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 

Inserting zeroes

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


Joined: 28 Nov 2006
Posts: 143
Topics: 48

PostPosted: Tue May 26, 2009 7:17 am    Post subject: Inserting zeroes Reply with quote

Hi,

I have one input file of length 100 bytes. I need to insert zeroes at column 40 with size 6 bytes making file length 106, but this zero should be in packed decimal format as the program to which this input file is suplied reads this 40,6 column into an packed decimal format.

I tried 6Z in OUTREC but the program is abending with S0C7 as unable to read the field. Please help me with syntax.
_________________
Thanks
Madhu Sudhan
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Tue May 26, 2009 9:08 am    Post subject: Reply with quote

psmadhusudhan,

Try this

Code:

//SYSIN  DD *
  SORT FIELDS=COPY
  OUTREC BUILD=(1,39,X'00000000000C',40,61)
//*


or

Code:

//SYSIN  DD *
  SORT FIELDS=COPY
  OUTREC BUILD=(1,39,+0,TO=PD,LENGTH=6,40,61)
//*

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


Joined: 28 Nov 2006
Posts: 143
Topics: 48

PostPosted: Tue May 26, 2009 11:49 pm    Post subject: Reply with quote

Thanks Kolusu it worked Very Happy
_________________
Thanks
Madhu Sudhan
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