Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8657
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: 2446
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: 8657
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 How to display offset thru cobol prog... tvinodkumar7 CICS 2 Sun Apr 22, 2018 8:42 pm
No new posts Linkage editor is part of COBOL, z/OS... ankit.jain COBOL Programming 4 Fri Apr 20, 2018 4:17 pm
This topic is locked: you cannot edit posts or make replies. Difference between EQUAL and EQUAL TO... jithinraghavan COBOL Programming 3 Thu Apr 19, 2018 2:22 am
No new posts Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm
No new posts COBOL MVS options BiswajitDG COBOL Programming 8 Fri Apr 06, 2018 12:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us