Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : When you specified V for RECFM parameter, LRECL value is largest record in the file plus 4 bytes. These four bytes contain the actual length of each variable length record in the file

Google
 
Web mainframegurukul.com

solve it

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> COBOL
  View previous topic :: View next topic  
Author Message
Abhiyanta
Member


Joined: 31 Mar 2006
Posts: 7
Location: PUNE

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Tue Jul 04, 2006 7:03 pm    Post subject: solve it Reply with quote

Tell me output of following porgram.
:
:
working-storage section.
77 A PIC 9 VALUE IS 1.
:
PROCEDURE DIVISION.
EVALUATE TRUE
WHEN A = 1
DISPLAY "CASE1"
WHEN A <2
DISPLAY "CASE2"
WHEN OTHER
DISPLAY "OTHER"
END-EVALUATE.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.

srinivas
Member


Joined: 08 Feb 2006
Posts: 9
Location: Bangalore

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Jul 05, 2006 2:45 pm    Post subject: Evaluate Reply with quote

Hi,

It displays CASE1. Once evaluate founds any match it executes the same and skips to next statement of end-evaluate.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
sadhana
Member


Joined: 22 Aug 2006
Posts: 1

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Tue Aug 22, 2006 4:11 pm    Post subject: Reply with quote

Hi,

Srinivas was right.

rgds,
sadhana
_________________
Sadhana
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
arrbee
Active Member


Joined: 24 Feb 2006
Posts: 144

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Thu Sep 07, 2006 10:53 am    Post subject: what if I code like this? Reply with quote

What happens if I code like this?

Code:

working-storage section.
77 A PIC 9 VALUE IS 1.
:
PROCEDURE DIVISION.
EVALUATE TRUE
WHEN A <2
DISPLAY "CASE2"
WHEN A = 1
DISPLAY "CASE1"
WHEN OTHER
DISPLAY "OTHER"
END-EVALUATE.


which will be displayed? Is it CASE2?
_________________
Arr Bee
-------------
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)
Back to top
View user's profile Send private message Send e-mail
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
chris_alex3k
Member


Joined: 19 Jun 2006
Posts: 3

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Mon Oct 30, 2006 10:44 am    Post subject: Answer Please!!! Reply with quote

Hi arrbee,
I think srinivas is correct. As per my knowledge, the output is "case2".
Isn't it correct?

Regards,
Alex.
Back to top
View user's profile Send private message Send e-mail
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
abhishek.pradhan
Member


Joined: 08 Nov 2006
Posts: 11

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Sun Nov 12, 2006 7:50 pm    Post subject: Reply with quote

Hi,

Alex is correct. CASE2 will be displayed utill the value of A is changed.

-Abhi
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Kgumraj
Member


Joined: 16 Nov 2006
Posts: 4
Location: Hyderabad

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Thu Nov 16, 2006 9:01 pm    Post subject: Slove it Reply with quote

Hello,

Cobol supports only sequential excecution.
the value contains CASE1
_________________
With Love
Kiran G R
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
dbzTHEdinosauer
Moderator


Joined: 02 Oct 2006
Posts: 981

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Thu Nov 16, 2006 9:21 pm    Post subject: Reply with quote

Kgumraj,

The answer to Abhiyanta's question is CASE1.

The answer to arrbee's question is CASE2.

Quote:
Cobol supports only sequential excecution.


that's a nice phrase, but means nothing.
_________________
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
piyush
Member


Joined: 07 Sep 2007
Posts: 4
Location: PUNE INDIA

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Fri Sep 07, 2007 2:17 pm    Post subject: Reply with quote

hi All,
i agree with Dick,
if there is any other answer plz let me know. Question
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
manitesh_kumar
Member


Joined: 10 Apr 2007
Posts: 1
Location: Pune

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Tue Sep 11, 2007 1:12 pm    Post subject: Re: what if I code like this? Reply with quote

arrbee wrote:
What happens if I code like this?

Code:

working-storage section.
77 A PIC 9 VALUE IS 1.
:
PROCEDURE DIVISION.
EVALUATE TRUE
WHEN A <2
DISPLAY "CASE2"
WHEN A = 1
DISPLAY "CASE1"
WHEN OTHER
DISPLAY "OTHER"
END-EVALUATE.


which will be displayed? Is it CASE2?


once any condition for the Evaluate clause is satified the control will come out of the flow.Hence only CASE2 will be displayed.
Back to top
View user's profile Send private message Yahoo Messenger
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
academyindia4
Guest





Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Jan 27, 2016 8:15 pm    Post subject: Topic deleted by Admin Reply with quote

<< Content deleted By Admin >>
Back to top
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> COBOL All times are GMT + 5 Hours
Page 1 of 1



 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Cobol Tutorial
This cobol tutorial covers most of the important topics like STRING, UNSTRING, COMP, COMP-3.....
DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. Explains in simple language. Some Chapters are locked, Forum members have free access to these chapters
CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming...
JCL Tutorial
This is most popular JCL tutorial from mainframegurukul. It does contain important jcl ....
SORT Tutorial
This Tutorial covers all important aspects of DFSORT. Has more SORT examples
INTERVIEW Questions
This page covers important interview questions
Mainframe Jobs
Mainframe Jobs posted by members of mainframegurukul forum
FaceBook Page
MainframeGurukul FaceBook Page
LinkedIn Page
MainframeGurkul Linkedin Page

This widget requires Flash Player 9 or better







Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials || Mainframe CICS tutorial|| Mainframe COBOL Tutorial

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB

mainframetopic-325.html