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: 2429
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 Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm


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