give the examples for strings and unstrings in cobol
Answers were Sorted based on User's Feedback
Answer / gopi
String: It is a command which is to concatenates multiple variables into a single variable.
Ex: STRING yy,
"-",
mm,
"-",
dd
deliminate by size
Into ws-date.
End-string.
Unstring:It is a command which is to deconcatenates single variable into a multiple variables.
Ex: UNSTRING
ws-date.
deliminate by "-"
INTO
yy,
mm,
dd
End-string.
| Is This Answer Correct ? | 9 Yes | 2 No |
Answer / mohan.ch
string-add the 2 or more ws-vars to one ws-var
eg:-string ws-var1,ws-var2,ws-var3,ws-var4
into ws-var5
wel'
come,
to,
india
o/p wel come to india
unstring-split the varables to multiple
reverse of srting
| Is This Answer Correct ? | 6 Yes | 0 No |
We are using the searching a table which is indexed, once the key is found, how can we get the occurance at which the key was found.
Define static linking and dynamic linking.
What is report-item in COBOL?
How do you differentiate between cobol and cobol-ii?
Hi All, Can anyone tell me how we can MOVE value of a X(19) variable to a S9(17) COMP-3 variable? Answer with an Example will be of great help.
01 x pic s9(8) comp. How will the following value be internally allocated '18787'
Can JUSTIFIED be used for all the data types?
How To move a value to an array using move verb?
Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resultant value of X wil be
What is the point of the REPLACING option of a copy statement?
Which of the following EDITind and PICTURE symbols is to be used if a minus(-) is to appear before the value if the value is -ve and a plus(+) is to appear before the value if the value is +ve? (a) + (b) - (c) + OR (d) It is not possible
what is the minimum number of lines a Cobol program should have to successfully compile and run
11 Answers ABC, Societe Generale,