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 cobol program with a sub program. How ca i find that it is a dynamic call? or static call..?

3 Answers   HCL, IBM,


How to code fscode 10 in cobol program? Where yoy code in your pgm?give ans for the question.

2 Answers   IBM,


wht is the difference between goto and perform stmts

7 Answers   DELL,


S9(5)V9(2) occupies how many bytes memory ?

6 Answers   Cap Gemini,


Can we change the password using ALTER? anyone tried and changed?

0 Answers   IBM,


What is the difference between Structured COBOL Programming and Object Oriented COBOL ?

1 Answers  


How do you compile cobol program..?

1 Answers  


Can we redefine the field of x(200) to less than 200?

0 Answers  


How do you define a sort file in JCL that runs the COBOL program?

6 Answers   Syntel,


What is a SSRANGE and NOSSRANGE?

0 Answers  


What compiler option would you use for dynamic linking?

2 Answers  


How many bytes do a s9 (7) comp-3 field occupy?

1 Answers  


Categories