Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

difference between escape(top or bottom) and escape
immediate(top or bottom?

Answer Posted / nitin

Program

000010 define data local
000020 1 #ACCOUNT_ID (N10)
000030 end-define
000040 LIMIT 5
000050 SELECT ACCOUNT_ID
000060 INTO #ACCOUNT_ID
000070 FROM CIS_ACCOUNT
000080 WHERE COY = 1
000090 AND ACCOUNT_ID = 12344
000100 *
000120 IF #ACCOUNT_ID = 7232
000130 WRITE 'INSIDE1' #ACCOUNT_ID
000140 ESCAPE ROUTINE IMMEDIATE
000150 END-if
000150 *
000160 AT END OF PAGE
000170 WRITE 'GOOD'
000180 END-ENDPAGE
000190 *
000200 WRITE 'INSIDE3'
000210 END-SELECT
000220 WRITE 'HELLO'
000230 end


Output


INSIDE3 3682
INSIDE3 4340
INSIDE3 7200
INSIDE1 7232
GOOD

I have written above program to test the scinarion. But in
all situations Good is getting printed. Will somebody help
me what escape statement should I use so that Good will not
get printed.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you explain control variable in online screens?

993


What is the difference between read work file 1 and read work file once? Why we are using work file once?

973


Can we see the copy book length using file-aid?

916


Explain difference between escape(top or bottom) and escape immediate(top or bottom?

1210


Define cobol coding sheet?

1024


Tell me can we update with histogram?

1161


Explain how to move cursor to a particular field when position is not known?

1011


What is a hyperdescriptor?

947


What is cobol coding sheet?

1244


Suppose you are processing an input file in a natural program and you want the program to fail if the file is empty. What command you use in natural to force it to fail?

1084


How to receive data passed through jcl parm parameter in a natural program?

979


How to receive data passed through jcl parm parameter in a natural program? How data definition is defined in the program?

1093


What is data trace system 2.0 used for?

5657


Explain the like inverted list?

965


What is the difference between escape(top or bottom) and escape immediate(top or bottom?

1038