Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref

Author Message
dasan

New User

Joined: 24 Oct 2006
Posts: 10

 Posted: Tue Nov 14, 2006 8:57 pm    Post subject: How to define an binary number in Cobol? Hi, How to define an binary number in Cobol?

Marso

REXX Moderator

Joined: 13 Mar 2006
Posts: 1284
Location: Israel

 Posted: Tue Nov 14, 2006 9:02 pm    Post subject: use COMP: PIC S9(4) COMP for halfword PIC S9(8) COMP for fullword
MFRASHEED

Active User

Joined: 14 Jun 2005
Posts: 186
Location: USA

 Posted: Tue Nov 14, 2006 9:16 pm    Post subject: Re: How to define an binary number in Cobol? Define field as COMP, COMP-4, or COMP-5. Refer to manual link for details (Page 225) http://publibfp.boulder.ibm.com/epubs/pdf/igy3lr31.pdf
vijay_bn79

New User

Joined: 20 Nov 2006
Posts: 48

 Posted: Mon Nov 20, 2006 6:47 pm    Post subject: COMP is the binary represention of data item in COBOL Ex:- ws-cop pic S9(4) COMP
cobolunni

Active User

Joined: 07 Aug 2006
Posts: 128
Location: kerala,india

 Posted: Tue Nov 21, 2006 2:38 pm    Post subject: Defining a binary number means what? COMP only converts the number to binary at the time of storage so it increases the speed of arithmatic operations is that what you asked
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics Need help - DB2 Dynamic SQL Program e... NikhilGuptaGaya DB2 6 Sat Jun 23, 2018 1:58 pm Issue in suppressing leading zeros &a... Vijay_Sirisha COBOL Programming 21 Thu Jun 07, 2018 8:01 pm VBS to VB in COBOL and JCL srajendran2 COBOL Programming 12 Fri Jun 01, 2018 3:04 am Rexx code to find greater then symobl... Bharath Vikraman CLIST & REXX 8 Tue May 29, 2018 9:40 am Question about dataset sequence numbe... harisukumaran JCL & VSAM 23 Tue May 29, 2018 9:31 am

 © 2003-2017 IBM MAINFRAME Software Support Division
 Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us