Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : By coding TIME=1440 or TIME=NOLIMIT, It will give a job or step an unlimited amount of time.

Google
 
Web mainframegurukul.com

Welcome to the mainframegurukul forums.

You are currently viewing our mainframe forums as a guest which gives you limited access to view most discussions, articles. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support at admin@mainframegurukul.com


sign stored in Packed Decimal fields and Zoned Decimal field

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> COBOL INTERVIEW QUESTIONS
  View previous topic :: View next topic  
Author Message
Krishna
Site Admin


Joined: 27 Jan 2006
Posts: 937

PostPosted: Sun Jul 19, 2009 4:11 pm    Post subject: sign stored in Packed Decimal fields and Zoned Decimal field Reply with quote

How is sign stored in Packed Decimal fields and Zoned Decimal fields?
Back to top
View user's profile Send private message Send e-mail

Krishna
Site Admin


Joined: 27 Jan 2006
Posts: 937

PostPosted: Sun Jul 19, 2009 4:11 pm    Post subject: Reply with quote

Packed Decimal fields: Sign is stored as a hex value in the last nibble (4 bits ) of the storage.

Zoned Decimal fields: As a default, sign is over punched with the numeric value stored in the last bite.
Back to top
View user's profile Send private message Send e-mail
sambit_mech
Member


Joined: 14 Jul 2010
Posts: 9
Location: India

PostPosted: Wed Jul 14, 2010 11:40 am    Post subject: Reply with quote

Packed decimal:
Signed numeric -
+1234 ---> in hex

024
13C

-1234 ---> in hex

024
13D

Unsigned numeric -

1234 ---> in hex

024
13F

Zoned Decimal:

Signed numeric -
+1234 ---> 123D in EBCDIC
-1234 ---> 123M in EBCDIC

Unsigned numeric -
1234 ---> 1234 in EBCDIC

How the sign is punched?
} -0
{ 0
A 1
B 2
C 3
D 4
E 5
F 6
G 7
H 8
I 9
J -1
K -2
L -3
M -4
N -5
O -6
P -7
Q -8
R -9
_________________
"By failiing to prepare, you are preparing to fail." - Benjamin Franklin
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> COBOL INTERVIEW QUESTIONS 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

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts How is sign stored in a COMP field ? 3 Krishna 1095 Wed Jul 14, 2010 1:45 pm
dbzTHEdinosauer View latest post
No new posts How is sign stored in a comp-3 field? 1 Krishna 1386 Sun Jul 19, 2009 4:10 pm
Krishna View latest post
No new posts How many bytes does a S9(7) SIGN TRAILING SEPARATE field occ 1 Krishna 856 Sun Jul 19, 2009 4:06 pm
Krishna View latest post
No new posts Problem with numeric field with sign in last digit 4 cees post 5100 Thu Apr 05, 2007 12:46 am
Veera View latest post
This topic is locked: you cannot edit posts or make replies. To compare two files (SSN fields) 20 vikasbs 11759 Thu Nov 09, 2006 9:55 pm
Frank Yaeger View latest post
 



This widget requires Flash Player 9 or better








Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB