give the examples of strings in cobol



give the examples of strings in cobol..

Answer / sravani

using strings we can move a value from one variable to one or more variables.
01 a pic a(3) value 'new'.
01 b pic a(3).
p.division
string a delimited by size to b.
display b.
ans: new

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More COBOL Interview Questions

SUPPOSE I HAVE 60 CHARACTERS STING. IN THAT I WANT FIND OUT HOW MANY TIMES 'A'(ASSUME)WILL REPEATED AND I HAVE TO PASS 'E' IN PLACE OF 'A'ALONG THAT STRING.

2 Answers   Wipro,


I have a File that has duplicate records. I need only those records that occur more than thrice.?

4 Answers   IBM, Wipro,


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

2 Answers   IBM,


How to replace the GOTO statement in COBOL without changing the structure of program. e.g. consider following code... I.D. E.D. D.D. P.D. compute C = A + B. GOTO para 100-display. compute D = C - D. GOTO 200-display. some other logic...... ........ GOTO 300-para. ...... ...... GOTO 400-para. Now I want to replacce all GOTO statements without changing the structure and otput of program.

6 Answers   Accenture,


Which of the following paragraphs is compulsory in every COBOL program? (a) SPECIAL-NAMES (b) PROGRAM-ID (c) FILE-CONTROL (d) OBJECT-COMPUTER

4 Answers  


how we rectify soc7 and soc4 errors in project?

1 Answers   Anaxis, TCS,


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

3 Answers  


What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?

7 Answers   T systems,


I have a occurs for 100 times but it has executed 101 time what could be the reason?

4 Answers  


Difference between cobol and cobol-ii?

1 Answers  


What is the default value(s) for an initialize and what keyword allows for an override of the default?

1 Answers  


01 text-data pic x(100). move 'xyzdbfrjjg u' to text-data. how to find the value of last index of text-data?

3 Answers   Mind Tree,


Categories