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
 
how to insert packed decimal value

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
sarathy

New User


Joined: 17 Sep 2008
Posts: 2
Location: bangalour

PostPosted: Thu Feb 09, 2012 4:00 pm    Post subject: how to insert packed decimal value
Reply with quote

Hi,

i have 80 byte length file in 30 to 33 position are packed decimal values, i want to change that values into 5678 to all the records. how can i achieve that?
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10374
Location: italy

PostPosted: Thu Feb 09, 2012 4:07 pm    Post subject: Reply to: how to insert packed decimal value
Reply with quote

why not search the forum with the OVERLAY keyword
you will find quite a few examples
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Thu Feb 09, 2012 11:03 pm    Post subject: Reply to: how to insert packed decimal value
Reply with quote

sarathy,

Use the following control cards

Code:

//SYSIN    DD *                           
  OPTION COPY                             
  INREC OVERLAY=(30:+5678,TO=PD,LENGTH=4)
//*
Back to top
View user's profile Send private message
sarathy

New User


Joined: 17 Sep 2008
Posts: 2
Location: bangalour

PostPosted: Tue Feb 14, 2012 4:50 pm    Post subject: Reply to: how to insert packed decimal value
Reply with quote

Thanks Skolusu 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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
No new posts How to insert a value on specific pos... Poha Eater DFSORT/ICETOOL 9 Sun Oct 01, 2017 3:04 am
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Joinkeys with decimal scdinesh DFSORT/ICETOOL 3 Fri Feb 10, 2017 4:46 am

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