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

Explain about Redefines cluse?

3 Answers   iGate,


What is the difference between goback, stop run and exit program in cobol?

0 Answers  


How to retrive the 9th records out of ten records using the cobol program ?

3 Answers   UST,


if a=b how the flow will complete??? perform test through test-exit. perform activa through activa-exit. test. if a=b then next sentence else move a to c. test-exit. exit. activa. -- -- activa-exit. exit.

1 Answers   IBM,


what happens if parmparameter passes zero bytes to the program

0 Answers   HSBC,






how to convert vsam table into DB2 table?

1 Answers   IBM, Wipro,


can i use multiple when statements in search & search all ? justify ur answer?

2 Answers  


Describe the difference between subscripting and indexing ?

2 Answers  


wirte a pgm in using files in which we hav 10 ,20,30 40...100 records in inputfile and i want them to be send to outputfile in reverse order. PLZ HELP ME OUT .........THIS IS A RECENT QUESTION IN IGATE..

5 Answers   iGate,


I want to declare a field with data type Double in my COBOL program. how shall i do that ?

5 Answers  


What are the different data types available in COBOL?

4 Answers  


i have a file which contains records like 10,30,90,50,20,40,80,60,70 i want to display these records in reverse order like 70,60,80,40,20,50,90,30,10 please give me the cobol code (do not sort the records)

3 Answers   Cap Gemini, Mind Tree,


Categories