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


Please Help Members By Posting Answers For Below Questions

which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1019


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1837


How are the next sentence and continue different from each other?

760


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2726


how do you reference the rrds file formats from cobol programs

792






In which area will you utilize 88 level items in cobol?

712


Explain how you can characterize tables in cobol?

636


What is redefines clause in COBOL?

844


What is cobol?

740


What is comp-1 and comp-2?

756


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.

5051


What is the Purpose of Pointer in the string?

639


How do you reference the fixed block file formats from cobol programs

699


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

676


Difference between array and sub-script ?

1157