What is the Purpose of POINTER Phrase in STRING command

Answers were Sorted based on User's Feedback



What is the Purpose of POINTER Phrase in STRING command..

Answer / lokanatha reddy

POINTER Phrase purpose: Points to the position in the
destination string where the next character will go.

Stntax:
STRING
Ident1 DELIMITED BY SIZE
Ident2 DELIMITED BY SPACES
INTO Ident4 WITH POINTER Point1
END-STRING.
POINTER value must be an integer item and its description
must allow it to contain a value one greater than the size
of the destination string. For instance, a pointer declared
as PIC 9 is too small if the destination string is 10
characters long

Is This Answer Correct ?    16 Yes 3 No

What is the Purpose of POINTER Phrase in STRING command..

Answer / kavya

POINTER is used to get the ended position of the string.

Is This Answer Correct ?    12 Yes 8 No

What is the Purpose of POINTER Phrase in STRING command..

Answer / anshuman

The POINTER option can be used to count the number of
characters actually moved in to the receiving field.

Is This Answer Correct ?    7 Yes 8 No

Post New Answer

More COBOL Interview Questions

What is the different between index and subscript?

3 Answers  


What is the significance of the PROGRAM-ID paragraph? If this name doesnt match with the name of the COBOL program, does it make a difference? Is the name specified in the PROGRAM-ID paragraph used as a name for the load module or any such thing?

4 Answers   IBM,


What are the different ways to run a COBOL DB2 program using JCL?

2 Answers  


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

1 Answers  


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

0 Answers  






what is sort? whis is internal & external sort ?when do u go for inter sort & external sort? tell about some sort utilites?

2 Answers   BirlaSoft,


What do you understand by psb and acb?

0 Answers  


What are the divisions in a cobol program? Which one is the mandatory division among them?

1 Answers  


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

0 Answers  


What is the difference between a binary search and a sequential search?

3 Answers  


What is the difference between PIC 9.99 and 9v99?

7 Answers  


What guidelines should be followed to write a structured Cobol program?

1 Answers  


Categories