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 are the control characters used in reports

1 Answers  


Can we dynamically increase the size of occurs clause? i.e In case I an not sure of the size of array and want to increase the size at run time.If yes , how?

1 Answers  


What is link edit in cobol?

0 Answers  


I have 100 records in a file.. i want to sort the records from 5 to 5o... give the syntax...

2 Answers   CTS, DSRC,


hi friends,can any one post the ibm mainframe inteqview questions for 1year exp candidate,for itc infotech interview?. have any body attended for this in the past?...

1 Answers   ITC Infotech,






how many divisions are there in cobol

3 Answers   ADP,


01 var1 pic s9(9)v99. 01 var2 pic x(30). procedure division. move 12345.99 to var1. move12345.99 to var2. display var1. display var2. what is the output?

2 Answers   IBM,


if we have a 10 steps how to override the 4th step in jcl?

2 Answers   Hewitt,


Why we are using comp and comp-3 in real time projects?

4 Answers   IBM,


How do you submit JCL via a Cobol program?

5 Answers   IBM,


When is inspect verb is used in cobol?

0 Answers  


When we code these comp,comp1,comp-2,comp-3 and comp4 values. I know the differnece.I mean when we will prefer if it is new program.Explain in detail with memory examples. Thanks in advance.

1 Answers   CTS,


Categories