give the examples for strings and unstrings in cobol
Answer Posted / 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 |
Post New Answer View All Answers
Which is not true about evaluate statement
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What are various search techniques in cobol? Explain.
What are the rules of the move verb?
How you can characterize tables in cobol?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What is the use of intialize verb?
how do you reference the printer file formats from cobol programs
how do you define single dimensional array and multidimensional array in your cobol?
Which Search verb is equivalent to PERFORM…VARYING?
When is inspect verb is used in cobol?
How do you differentiate between cobol and cobol-ii?
what is the difference between COBOL2 AND COBOL390?