How is Unstring used?

Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS
pragati
Posts: 2
Joined: Fri Nov 28, 2008 10:01 am
Skillset: COBOL,JCL,EZTRIEVE,DB2
Referer: friends

How is Unstring used?

Postby pragati » Fri Nov 28, 2008 10:24 am

Can anyone tell how unstring works....

User avatar
dick scherrer
Global moderator
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am

Re: How is Unstring used?

Postby dick scherrer » Fri Nov 28, 2008 11:17 am

Hello and welcome to the forum,

UNSTRING is used to break a variable into smaller pieces. Most times unstring is used to compound delimited data (string) into multiple individual fields.

Here is the link to the cobol reference manual which completely explains unstring:
http://publibz.boulder.ibm.com/cgi-bin/ ... r10/6.2.39?

Suggest you bookmark the link as this manual contains the complete language reference.
Hope this helps,
d.sch.