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...


IDENTIFICATION DIVISION.
PROGRAM-ID. MOVEPGM.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 WS-I PIC 9(2).
PROCEDURE DIVISION.
A1000-MAIN-PARA.
PERFORM PARA-X WITH TEST BEFORE UNTIL WS-I= 5
STOP RUN.
PARA-X.
DISPLAY "BEST2".



I m getting error s722,while executing the program, seems
getting in loop, can anybody tell me why

Answers were Sorted based on User's Feedback



IDENTIFICATION DIVISION. PROGRAM-ID. MOVEPGM. ..

Answer / anand

WS-I should be initialized before calling the para PARA-X

Is This Answer Correct ?    4 Yes 1 No

IDENTIFICATION DIVISION. PROGRAM-ID. MOVEPGM. ..

Answer / shekhar

initialize with a value and increase & decrease accordingly.

Is This Answer Correct ?    1 Yes 1 No

IDENTIFICATION DIVISION. PROGRAM-ID. MOVEPGM. ..

Answer / billyboyo

In IBM Cobol.

You need to give WS-I a starting value and increment it (or
decrement it, depending on the value) either in the perform
construct or in the paragraph.

You should consider the PICTURE and USAGE of WS-I. Much
better as PIC S9(4) and COMP.

You are also using a compile option, probably NUMPROC
(NOPFD) which is preventing your program abending by
doing "sign fixing". Only use NOPFD is all your data is
good, otherwise it makes errors harder to find.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

I have a Flat file in which certain records are present in a tabular format. I need to extract some of the records on some basis from it and copy them into a flat file...how it can be done ??

2 Answers   HCL,


What are ISOLATION LEVELS? Where do we need to specify them?

3 Answers   EXL,


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

0 Answers  


Name the sections present in data division.

0 Answers  


How to convert bunch of words in a line to relvant ASCII values?

2 Answers  


how many bytes do SPPPP999 will store?

18 Answers  


Which Search verb is equivalent to PERFORM…VARYING?

0 Answers  


How are the next sentence and continue different from each other?

0 Answers  


How do you define a table/array in COBOL?

5 Answers   Hexaware,


for an INITIALIZE and what keyword allows for an override of the default.

2 Answers  


How arrays can be defined in COBOL?

0 Answers  


How is sign stored in Packed Decimal fields and Zoned Decimal fields?

6 Answers   ABC, HCL, TCS,


Categories