What is the Purpose of POINTER Phrase in STRING command

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1946


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2329


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

2223


how to access the file from prodution from changeman tool and to submit a file to production

7056


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

850


What is rmode(any) ?

890


i want a program using by if, evaluate , string, unstring, perform, occurs?

4333


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2226


Define cobol?

1062


What is the difference between comp and comp-3?

884


Differentiate between structured cobol programming and object-oriented cobol programming.

828


Which Search verb is equivalent to PERFORM…VARYING?

849


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

957


What are the different types of condition in cobol and write their forms.

860


In COBOL, what is the different between index and subscript?

938