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
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
How do we get current date from system with century in COBOL?
A table has two indexes defined. Which one will be used by the SEARCH?
How many sections are there in data division in COBOL?
Difference between array and sub-script ?
What are literals?
Can we redefine the field of x(200) to less than 200?
What is the difference between external and global variables in COBOL?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
what is the use of outrecord?
What is amode(31)
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
What type of SDLC u followed? Why?