What is the Purpose of POINTER Phrase in STRING command
Answers were Sorted based on User's Feedback
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 |
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 |
What is the different between index and subscript?
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?
What are the different ways to run a COBOL DB2 program using JCL?
How many bytes do a s9 (7) comp-3 field occupy?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
what is sort? whis is internal & external sort ?when do u go for inter sort & external sort? tell about some sort utilites?
What do you understand by psb and acb?
What are the divisions in a cobol program? Which one is the mandatory division among them?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
What is the difference between a binary search and a sequential search?
What is the difference between PIC 9.99 and 9v99?
What guidelines should be followed to write a structured Cobol program?