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

Author Message
garv_fundu
Warnings : 1

New User

Joined: 02 Nov 2006
Posts: 22

 Posted: Thu Dec 28, 2006 5:48 pm    Post subject: Comparing signed var with unsigned variable hi, Can we compare a s9(07) var with a 9(03) var....

William Thompson

Global Moderator

Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

 Posted: Thu Dec 28, 2006 6:00 pm    Post subject: From the FM: Comparing numeric operands When the algebraic values of numeric operands are compared: v The length (number of digits) of the operands is not significant. v Unsigned numeric operands are considered positive. v Zero is considered to be a unique value regardless of sign. v Comparison of numeric operands is permitted regardless of the type of USAGE specified for each.
garv_fundu
Warnings : 1

New User

Joined: 02 Nov 2006
Posts: 22

 Posted: Thu Dec 28, 2006 6:10 pm    Post subject: also can we compare a comp-3 and a normal numeric var...
William Thompson

Global Moderator

Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

Posted: Thu Dec 28, 2006 6:26 pm    Post subject:

 Quote: Comparison of numeric operands is permitted regardless of the type of USAGE specified for each.
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics To get Non matching row after compari... vinu78 DB2 7 Fri Jan 05, 2018 5:43 pm Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm Comparing dates in different formats migusd SYNCSORT 4 Sat Nov 18, 2017 3:02 am Move from Comp3 variable to Edited Va... Revathy.nair0485 COBOL Programming 7 Fri Nov 03, 2017 3:30 pm Comparing current time with the time ... arunsoods SYNCSORT 1 Mon Oct 30, 2017 4:07 pm

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