Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Why the use of Delimited By clause is a Must in STRING

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Why the use of Delimited By clause is a Must in STRING
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: 757
Location: Germany

PostPosted: Mon Nov 06, 2006 5:25 pm    Post subject:
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    Post subject: Re: Why the use of Delimited By clause is a Must in STRING
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: 757
Location: Germany

PostPosted: Tue Nov 07, 2006 2:49 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Date in where clause - Windows Karthikeyan Subbarayan DB2 9 Wed Nov 15, 2017 9:07 pm
No new posts line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts String after '.' (period) is not copy... balaji81_k SYNCSORT 6 Wed Aug 23, 2017 9:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us