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
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.
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?
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
how to access the file from prodution from changeman tool and to submit a file to production
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
What is rmode(any) ?
i want a program using by if, evaluate , string, unstring, perform, occurs?
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.
Define cobol?
What is the difference between comp and comp-3?
Differentiate between structured cobol programming and object-oriented cobol programming.
Which Search verb is equivalent to PERFORM…VARYING?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What are the different types of condition in cobol and write their forms.
In COBOL, what is the different between index and subscript?