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

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

4057


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1115


Describe the cobol database components?

680


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

1931


Can a Search can be done on a table with or without Index?

802






Write a cobol program making use of the redefine clause.

731


What is the difference between comp and comp-3?

698


How do you reference the fixed block file formats from cobol programs

703


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17035


Explain what you understand by passing by value.

698


What are the pertinent COBOL

2045


Which mode is used to operate the sequential file?

666


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

658


Write the code to count the sum of n natural numbers.

699


Difference between array and sub-script ?

1164