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

 MAINFRAME - TIP OF THE DAY : programming pearls - Good judgement comes from experience, and experience comes from bad judgement.

 Web mainframegurukul.com

Programmers Voted for below topics.      Please Vote for good Posts. Votes Salutes
Author Message

Joined: 27 Jan 2006
Posts: 1051

 0 salutes

 Posted: Sun Jul 19, 2009 4:11 pm    Post subject: sign stored in Packed Decimal fields and Zoned Decimal field How is sign stored in Packed Decimal fields and Zoned Decimal fields?
 <-- Click on right mark icon. If this post answer your question.

Joined: 27 Jan 2006
Posts: 1051

 0 salutes

 Posted: Sun Jul 19, 2009 4:11 pm    Post subject: 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.
 <-- Click on right mark icon. If this post answer your question.

Member

Joined: 14 Jul 2010
Posts: 9
Location: India

 3 salutes

 Posted: Wed Jul 14, 2010 11:40 am    Post subject: 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
 <-- Click on right mark icon. If this post answer your question.
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 All times are GMT + 5 Hours Page 1 of 1

 Jump to: Select a forum This Website----------------Admin AnnouncementsModerators Only APPLICATION PROGRAMMING----------------COBOLJCLDFSORT , ICETOOL & UtilitiesCICSEASYTRIEVE DATA MANAGEMENT SYSTEMS----------------DB2 SQL - DB2 PROGRAMMINGVSAM - File systemIMS DBIDMS TOOLS----------------XPEDITERFILE-AIDCHANGE MANENDEVOR, COOLGEN , PANVALET and CA-7 OTHER LANGUAGES----------------TSO, CLIST & REXXPL/IASSEMBLERIMS/DC CAREERS / JOBS DISCUSSIONS / INTERVIEW QUESTIONS----------------JOB VACANCIESJOB DISCUSSIONABEND CODES / ERROR CODESDB2 INTERVIEW QUESTIONSCOBOL INTERVIEW QUESTIONSJCL INTERVIEW QUESTIONSVSAM INTERVIEW QUESTIONSCICS INTERVIEW QUESTIONSINTERVIEW QUESTIONS OTHER MAINFRAME SUBJECTS----------------XMLMQSERIES & WEBSPHEREOTHER SUBJECTS GENERAL FORUMS----------------EntertainmentGeneral DiscussionPersonality DevelopmentOff TopicsSuggestions & Feedback
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

  Topics   Replies   Author   Views   Last Post Related topics Sum fields with sign 1 rameshvc 1735 Mon Nov 22, 2010 11:32 pmFrank Yaeger How is sign stored in a COMP field ? 3 Krishna 3608 Wed Jul 14, 2010 1:45 pmdbzTHEdinosauer How is sign stored in a comp-3 field? 1 Krishna 2742 Sun Jul 19, 2009 4:10 pmKrishna How many bytes does a S9(7) SIGN TRAILING SEPARATE field occ 1 Krishna 2266 Sun Jul 19, 2009 4:06 pmKrishna Problem with numeric field with sign in last digit 4 cees post 11207 Thu Apr 05, 2007 12:46 amVeera

 Cobol TutorialThis cobol tutorial covers most of the important topics like STRING, UNSTRING, COMP, COMP-3..... DB2 TutorialDB2 Tutorial focuses on DB2 COBOL Programming. Explains in simple language. Some Chapters are locked, Forum members have free access to these chapters CICS TutorialThis CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming... JCL TutorialThis is most popular JCL tutorial from mainframegurukul. It does contain important jcl .... SORT TutorialThis Tutorial covers all important aspects of DFSORT. Has more SORT examples INTERVIEW QuestionsThis page covers important interview questions Mainframe Jobs Mainframe Jobs posted by members of mainframegurukul forum FaceBook PageMainframeGurukul FaceBook Page LinkedIn PageMainframeGurkul Linkedin 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 || Mainframe CICS tutorial|| Mainframe COBOL Tutorial Drona Educational Forums - Mainframe Cobol DB2 CICS Board Powered by phpBB
mainframetopic-4367.html