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 |
What happens in the background of spool when we submit a job for compilation and execution... This is a recent question in ibm...Kindly help me.....
can we use 77 level no for Redefines?if we use give an example?
What is the difference between Perform para and perform asaection in cobol?
What R 2 of the common forms of the EVALUATE STATEMENT ?
Can the OCCURS clause be at the 01 level?
can i use multiple when statements in search & search all ? justify ur answer?
can we use variable picture clause as xx.99 in cobol.
How can I tell if a module is being called DYNAMICALLY or STATICALLY?
How do we get current date from system with century in COBOL?
Whats the use of Examine command? can someone help me?
In EBCDIC, how would the number 1234 be stored?
consider the following two statements MOVE 10 TO N PERFORM PARA-X N TIMES STOP RUN PARA-X MOVE 5 TO N how many times PARA-X willbe exicuted? a.10 b.5 c.infinate d.execution error