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

How to use the same COBOL program in Batch and CICS on lines? explain with an example

0 Answers   IBM,


Why IBM?

1 Answers   IBM,


what are the control characters used in reports

1 Answers  


How to define variable 9(20) in COBOL, because compiler does not allow us to declare variables with Pic 9(18). Can anyone please let me know the answer... I know one answer to this question which is to use Compiler option Arith (Extend) during Compilation. It extends the maximum limit to 9(32)..Just wanted to know if there is any other way to extend this?

4 Answers   CSC, TCS,


What are the access modes of START statement?

0 Answers  


What are the ways you can generate a copybook?

2 Answers  


How do u initialize an array?

2 Answers   CTS,


How do you define a variable of comp-1 and comp-2?

0 Answers  


in how many mode we can open a file ?

4 Answers  


what is the purpose of linkage section?

10 Answers  


can internal sort be applied to sort ksds files?

1 Answers  


what is s013u000 for?

1 Answers   Hewitt,


Categories