Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 755
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: 755
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 Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm
No new posts Sort Card to Remove Duplicate records... raj4neo SYNCSORT 2 Wed Jan 25, 2017 4:44 am
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 6 Sun Nov 06, 2016 8:11 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us