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

given the following: 77 A PIC 9V9 VALUE 9.5 77 B PIC 9 VALUE 9. 77 C PIC V9 VALUE 0.8 77 D PIC 9 77 E PIC 9 77 F PIC 9V999 what are the contenta of D E nad F after the following statements are executed: COMPUTE F ROUNDED=A+C/B MULTIPLY A BY C GIVING E ADD B C A GIVING D ROUNDED a.F=9.589 E=8 D=1 b.F=9.589 E=8 D=9 c.F=9.589 E=7 D=9 d.F=9.589 E=7 D=1

5 Answers   Broadridge, TCS,


How to read a 100 record from a file through cobol?

2 Answers  


What is different between variable length and fixed length?

2 Answers   TCS,


Can we use redefine clause in occurs clause?

10 Answers  


what is amode(24), amode(31), rmode(24) and rmode(any)?

0 Answers  






What is a SSRANGE and NOSSRANGE?

0 Answers  


suppose there is one PF having two members PF1 PF2.PF has one unique key Emp ID.could you tell me uniqueness in PF will be effective across members as well ? assume emp iD 3333 is in member PF1 would same Emp id be exist also in member PF2 ?

2 Answers   Tesco HSC, Wipro,


How To Separate The Numerics From An Alphanumric Data Item Which Contains Both Alphabates And Numerics ?

4 Answers  


What is the mode in which you will OPEN a file for writing?

4 Answers  


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

0 Answers  


what are the limitations of Inline Perform?

3 Answers   Zensar,


wht is the difference between goto and perform stmts

7 Answers   DELL,


Categories