IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Why the use of Delimited By clause is a Must in STRING


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
boo_sri

New User


Joined: 26 Jul 2005
Posts: 36
Location: charlotte

PostPosted: Mon Nov 06, 2006 5:14 pm
Reply with quote

Why the use of Delimited By clause is a Must in STRING statements.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Mon Nov 06, 2006 5:25 pm
Reply with quote

Hi !

Because a length is needed. This length is deducible from the delimiter.
In comon it's nothing else than a variable move.

Field-A Value 'aaaa bbbb'

String Field-A to Field-B de,imited by space

Field-B Value 'aaaa'

Move Field-A (1:4) to Field-B

Regards, UmeySan
Back to top
View user's profile Send private message
boo_sri

New User


Joined: 26 Jul 2005
Posts: 36
Location: charlotte

PostPosted: Tue Nov 07, 2006 11:12 am
Reply with quote

Suppose if you want to concatenate two strings, let us assume "AAA" "BBB" which don't have any delimiters. Then what is the use of delimiter clause here, why can't we use the String without delimiters.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Tue Nov 07, 2006 2:49 pm
Reply with quote

Hi !

Your example is a simple String with delimited by size

String Field-A, Field-B
delimited by size
into Field-Z
End-String

So please, don't spend to much time thinking on higher psychologically important background details of a command. Utilize the time to construct
clear and efficient programms.

Regards, UmeySan
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts file manager is doing string conversion IBM Tools 3
No new posts To search DB2 table based on Conditio... DB2 1
Search our Forums:

Back to Top