give the examples for strings and unstrings in cobol

Answers were Sorted based on User's Feedback



give the examples for strings and unstrings in cobol..

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

give the examples for strings and unstrings in cobol..

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

Post New Answer

More COBOL Interview Questions

for an INITIALIZE and what keyword allows for an override of the default.

2 Answers  


When can the USING phrase be included in the call statement ?

2 Answers  


At the minimum, which division of COBOL is enough to be coded?

3 Answers   CTS,


What is the difference between working storage copybook and linkage section copybook?

5 Answers   TCS,


what is difference between the sysabend and userabend?

2 Answers  






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?

2 Answers   Cap Gemini,


What is comp-1 and comp-2?

0 Answers  


what are the error codes in cobol, db2, cics, vsam , and jcl

2 Answers   TetraSoft,


What was removed from COBOL in the COBOL II implementation?

0 Answers  


hi dudes.....can any one help me..... what is SET TO TRUE all about,anyway?

1 Answers  


Write a program that uses move corresponding.

0 Answers  


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?

3 Answers   TCS,


Categories