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 |
for an INITIALIZE and what keyword allows for an override of the default.
When can the USING phrase be included in the call statement ?
At the minimum, which division of COBOL is enough to be coded?
What is the difference between working storage copybook and linkage section copybook?
what is difference between the sysabend and userabend?
What are the situations u have used in ur project for Subcript and Index ? 1.if u use Subscript why not Index,why u choose Subscript only? 2.if u use Index why not Subscript,what abt Displacement?
What is comp-1 and comp-2?
what are the error codes in cobol, db2, cics, vsam , and jcl
What was removed from COBOL in the COBOL II implementation?
hi dudes.....can any one help me..... what is SET TO TRUE all about,anyway?
Write a program that uses move corresponding.
what modification we need to do in jcl if we use sort in cobol? I mean whether we need to include tempary file used for sorting in assign statement?