intrinsic function

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
User avatar
Gurugars
Active Member
Posts: 107
Joined: Sat Oct 23, 2010 2:17 pm
Location: Chennai,India.

intrinsic function

Post by Gurugars » Sat Oct 23, 2010 2:26 pm

friends

can we use the array variable in intrinsic function lik

function max,min.. for example

05 arr pic 9(2) occurs 5 times.
77 mx pix 99.
.
.
.
compute mx=function max(arr).
.
.. :idea: :idea:
Guru:-)

You're never fully dressed without a smile :)

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Mon Oct 25, 2010 1:53 pm

What do your tests say?
Regards,
Anuj

User avatar
Gurugars
Active Member
Posts: 107
Joined: Sat Oct 23, 2010 2:17 pm
Location: Chennai,India.

Post by Gurugars » Mon Oct 25, 2010 8:04 pm

Dear Anuj.. 'Jus wanna know if my array contain values lik 20,30,40,10,15. If 'm usin t followin statement....

Compute mx=function max(arr).


Here arr s my array variabl( occur class variabl).. Then can i get t result as 40..
Guru:-)

You're never fully dressed without a smile :)

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Mon Oct 25, 2010 8:49 pm

why is it so impossible for you to test it?

why can't you look in the manual?
http://publibz.boulder.ibm.com/cgi-bin/ ... E=&FS=TRUE
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

User avatar
Krishna
Site Admin
Posts: 1052
Joined: Fri Jan 27, 2006 7:50 am

Post by Krishna » Tue Oct 26, 2010 5:10 pm

Thanks dick. It does contain good information.

User avatar
Gurugars
Active Member
Posts: 107
Joined: Sat Oct 23, 2010 2:17 pm
Location: Chennai,India.

Post by Gurugars » Thu Oct 28, 2010 9:15 am

thanks dick:)
Guru:-)

You're never fully dressed without a smile :)

User avatar
Gurugars
Active Member
Posts: 107
Joined: Sat Oct 23, 2010 2:17 pm
Location: Chennai,India.

Post by Gurugars » Thu Oct 28, 2010 9:19 am

actually dik 'm not a workin proffstnl.. jus nw completed a course on mainframe n lookin for a job on the same.. so i don ve any sourc to refer except u ppl :) i s ter any way to run my pgm on-line :idea: ???
Guru:-)

You're never fully dressed without a smile :)

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Thu Oct 28, 2010 12:44 pm

I'd suggest you keep yourself engange with the Manuals then...it helps.
Regards,
Anuj

User avatar
Gurugars
Active Member
Posts: 107
Joined: Sat Oct 23, 2010 2:17 pm
Location: Chennai,India.

Post by Gurugars » Fri Oct 29, 2010 4:29 pm

k thanks yaar :)
Guru:-)

You're never fully dressed without a smile :)

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Mon Nov 15, 2010 4:34 pm

And possibly avoid using "chat-slangs" in Technical Forums like this...:)
Regards,
Anuj

User avatar
Gurugars
Active Member
Posts: 107
Joined: Sat Oct 23, 2010 2:17 pm
Location: Chennai,India.

Post by Gurugars » Wed Nov 17, 2010 5:10 pm

ok anuj.. sorry for the above posts..
Guru:-)

You're never fully dressed without a smile :)

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Wed Nov 17, 2010 6:32 pm

Not a problem, sorry is not needed at all...:)

have a good one, :)
Regards,
Anuj

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others