What is the Purpose of POINTER Phrase in STRING command
Answers were Sorted based on User's Feedback
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 |
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 |
What is the maximum length of a field you can define using COMP-3 in COBOL?
01 b pic +9(4) How many bytes it will take for storage???
WHY LRECL NEEDS TO BE 4 EXTRA THEN THE COBOL FILE LENGTH & WHAT IT CONTAIN IN THAT LENGTH
What is binary search?
Program A calls program B. Will the working storage variables declared in program B be initialized every time it is called by program A or will the values be retained until the end of program A?
give the examples for strings and unstrings in cobol
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
what is sort? whis is internal & external sort ?when do u go for inter sort & external sort? tell about some sort utilites?
How do u debug a S0C7 abend? (aswered till we get the field which caused that) After knowing the field which caused that how do u know the record which caused that if it is in production env? (dumb) Ok let us assume that we got to know that 100th record caused that and I wanted to skip only 100th record from the file and process from 101th. How to do that in JCL using SORT? (tried with STOPAFT but ended up dumb when he said smthing else is ther)
what is difference between cobol and cobol/400
waht is inspect verb? where it can be in real time?
which is faster either static call or dynamic call ? and specify the reasons for it ? reply fast