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


how do you move only numeric data from A to B
01 A pic x(10) value 'a1b2c34d5e'.
01 B pic x(5).

Answers were Sorted based on User's Feedback



how do you move only numeric data from A to B 01 A pic x(10) value 'a1b2c34d5e'. 01 B pi..

Answer / ravi krian j

using reference modification move & isnumeric


PERFORM VARYING I FROM 1 BY 1 UNTIL I>10

IF A(I:1) IS NUMERIC
MOVE A(I:1) TO B(I:1)
END-IF
END-PERFORM.

Is This Answer Correct ?    20 Yes 1 No

how do you move only numeric data from A to B 01 A pic x(10) value 'a1b2c34d5e'. 01 B pi..

Answer / mr.s

using inspect command

Is This Answer Correct ?    0 Yes 7 No

Post New Answer

More COBOL Interview Questions

level number 77 is used to define a)group data b)elementary data c)redefine d)none

8 Answers   TCS,


in cobol perform stmt whether it first checks the condition or not

9 Answers  


if a>b continue display x. dispaly y. end-if display 1 display 2. display 3. what should be my output ?

3 Answers  


tell me about examine inspect and evaluate ?

2 Answers   CTS,


diffrence between z(2) and z9(2)

4 Answers   Cap Gemini,


Scenario: I have 3 Input Files.Read the first i/p file and depending on certain business logic, I want to read wither i/p file-2 or i/p file-3.Now, depending on certain business logic applied to the record read from either file-2 or file-3, I decide to write them to either output file-2 or output file-2. Question: How many job steps are necessary to implement a solution for the above.

2 Answers   TCS,


Write a program to explain size error.

0 Answers  


How do you define a variable of COMP-1? COMP-2?

3 Answers  


what is the coding difference between COBOL and CICS.

8 Answers   Cap Gemini,


What are the differences between COBOL and COBOL II?

1 Answers   CSC,


i want to use only first 100 records from a file.plz tell me how to write JCL for this(for read,copy,write operations).plz give me details of all posible JCL utilities?

7 Answers   CTS,


Can anybody give me example of subscript and index

5 Answers  


Categories