Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to find the lowest of three Numeric variable in COBOL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How to find the lowest of three Numeric variable in COBOL
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

Senior Member


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

PostPosted: Mon Jul 26, 2010 3:25 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Jul 26, 2010 3:45 pm    Post subject: Re: How to find the lowest of three Numeric variable in COBO
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: 2435
Location: Netherlands, Amstelveen

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

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Jul 26, 2010 4:20 pm    Post subject:
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    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Wed Jul 28, 2010 5:15 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Validate if a Value from the file is ... balacsv2 COBOL Programming 8 Mon Jun 19, 2017 11:52 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts Can I traverse a STEM variable? chong.zhou CLIST & REXX 5 Wed May 31, 2017 3:54 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us