Exforsys

Free Training

packed decimal to unpacked decimal

This is a discussion on packed decimal to unpacked decimal within the COBOL forums, part of the Programming Talk category; hello every one can any one help me out from this? mainframe flat file was transfering to datastage,while transfering file ...

Go Back   Exforsys > Programming Talk > COBOL

Exforsys.com

  #1 (permalink)  
Old 08-10-2009, 07:22 AM
Junior Member
 
Join Date: Aug 2009
Posts: 1
jagan403 is on a distinguished road
packed decimal to unpacked decimal

hello every one

can any one help me out from this?

mainframe flat file was transfering to datastage,while transfering file was in packed decimalformat but in end target the packed decmial format shouldnt come?
this was the format in datastage we aree geeting--

member_sub_amt
0000000{
0000045{
0000198H
0000203C
0000098I
0000203C
0000098I
0000265D

i should not get this in endtarget for this wat i need to do....?
{-->meaning
h--->meaning
thanks in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-24-2010, 11:50 AM
Junior Member
 
Join Date: Jul 2007
Posts: 8
eddie13 is on a distinguished road
Quote:
Originally Posted by jagan403 View Post
hello every one

can any one help me out from this?

mainframe flat file was transfering to datastage,while transfering file was in packed decimalformat but in end target the packed decmial format shouldnt come?
this was the format in datastage we aree geeting--

member_sub_amt
0000000{
0000045{
0000198H
0000203C
0000098I
0000203C
0000098I
0000265D

i should not get this in endtarget for this wat i need to do....?
{-->meaning
h---> meaning
thanks in advance
You probably have an answer by now. Sorry but I haven't checked posted as much as I should. The meaning of "{" is a number that ends with positive zero and "}" is a number that ends with a negative zero... such as -10 which would be 000001}. Fields ending in "A" are numbers that end with a positive 1... B==2, C==3 ... J==9. Negative 1 is "K", L==-2, M==-3 etc. ?This packed format would be either PIC S9(7) or decimal equalivent... S9(5)V9(2). To upload files, I always unpacked first and then upload that file. The unpacked file will have 4 additional characters. The packed field occupies 4 bytes (characters) and the unpacked field will occupy 8 bytes. If you want to convert the zone signed characters, use output format PIC 9999999- for trailing sign. Also notice that mainframe "a" and "A" have different values.
hope this helps.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 02:10 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright 2004 - 2009 Exforsys Inc. All rights reserved.