IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to find the lowest of three Numeric variable in COBOL


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Amar.Roy

New User


Joined: 26 Jul 2010
Posts: 4
Location: Banglore

PostPosted: Mon Jul 26, 2010 1:11 pm
Reply with quote

Hi,

I need to find out the lowest of three variable in a cobol program. Please let me know if I can use some keyword to find the lowest among three variable.

Pls reply fast.

Thanks,
Amar
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Jul 26, 2010 3:25 pm
Reply with quote

I don't think so that there is an intrinsic-function in COBOL which will do what you've asked for.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jul 26, 2010 3:45 pm
Reply with quote

Amar.Roy wrote:
Pls reply fast.
fast
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Jul 26, 2010 3:48 pm
Reply with quote

Define fast
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jul 26, 2010 4:20 pm
Reply with quote

A period of such abstention or self-denial.
Back to top
View user's profile Send private message
sambit_mech

New User


Joined: 14 Jul 2010
Posts: 13
Location: India

PostPosted: Mon Jul 26, 2010 4:29 pm
Reply with quote

Use MIN function (an intrinsic COBOL function).
Back to top
View user's profile Send private message
shantanu.dhawan

New User


Joined: 09 Oct 2007
Posts: 1
Location: London

PostPosted: Tue Jul 27, 2010 9:06 pm
Reply with quote

format given below:

COMPUTE MIN-WS = FUNCTION MIN(FLDA FLDB FLDC FLDD)
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Jul 28, 2010 5:15 pm
Reply with quote

Removing the egg from face, slowly!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
Search our Forums:

Back to Top