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 mode is used to operate the sequential file?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
How you can characterize tables in cobol?
How you can read the file from bottom?
How do define dynamic array in cobol.
Write some characteristics of cobol as means of business language.
what are decleratives in cobol?
Differentiate between structured cobol programming and object-oriented cobol programming.
Which is not true about evaluate statement
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
how do you reference the printer file formats from cobol programs
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
What are the rules of the move verb?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
) How do u handle errors in BMS macro?