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
 
Change 2 byte comp-3 value to 6 byte comp-3 value

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
sridevi2005

New User


Joined: 15 Sep 2005
Posts: 42

PostPosted: Thu Oct 25, 2007 10:09 am    Post subject: Change 2 byte comp-3 value to 6 byte comp-3 value
Reply with quote

I want to change 2 byte comp-3 value to 6 byte comp-3 value.

EX:

2 byte comp-3 value -- 001C
6 byte comp-3 value -- 00000000001C

Please provide me that.

Thanks,
Sridevi
Back to top
View user's profile Send private message

murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Thu Oct 25, 2007 11:13 am    Post subject:
Reply with quote

Sridevi,

Provided two mehtods. Whichever you feel is easy, use it.

Code:
//SYSIN DD *                           
  OPTION COPY                     
  OUTREC FIELDS=(1,2,PD,TO=PD,LENGTH=6)
/*                                     


Code:
//SYSIN DD *                                           
  OPTION COPY                                     
  OUTREC FIELDS=(1,2,PD,ADD,+0,TO=PD,LENGTH=6)         
/* 


I assumed PD value occurs from col 1 to 2. Change according to your req.

Moderators,

Could you remove my prev post in this topic. Thanks!!!!
Back to top
View user's profile Send private message
sridevi2005

New User


Joined: 15 Sep 2005
Posts: 42

PostPosted: Thu Oct 25, 2007 11:42 am    Post subject: Reply to: Change 2 byte comp-3 value to 6 byte comp-3 value
Reply with quote

Hi Murali,

Thank u very much.

Its working fine.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Thu Oct 25, 2007 12:00 pm    Post subject:
Reply with quote

Sridevi,

You are welcome.
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to change the logon screen info o... sakthikumarT TSO/ISPF 4 Fri Dec 29, 2017 6:44 pm
No new posts COMP Variables Mismatch gayu7 COBOL Programming 5 Wed Dec 20, 2017 5:06 pm
No new posts Change NULL indicator in UNLOAD utility Khadhar Basha DB2 2 Fri Dec 15, 2017 3:01 pm
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm

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