Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 2 byte YEAR from Y'DATE2' field tecnokrat DFSORT/ICETOOL 2 Tue Feb 07, 2017 12:05 pm
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us