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
 

 

What is the difference b/w Delimited by Space and size

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
spriya

New User


Joined: 06 Oct 2005
Posts: 42

PostPosted: Thu Jul 27, 2006 9:57 am    Post subject: What is the difference b/w Delimited by Space and size
Reply with quote

Hi all ,



explain me string concept in cobol


string field-1 , field-2 delimited by space into field-3

here delimited by space means what it actually doing

what is the difference b/w Delimited by Space and Delimited by Size?

give me a example
Back to top
View user's profile Send private message

priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Thu Jul 27, 2006 10:47 am    Post subject: Re: STRING
Reply with quote

Quote:
explain me string concept in cobol

STRING verb is used to concatenate two or more strings into one. For complete reference check manuals.
Quote:
string field-1 , field-2 delimited by space into field-3

here delimited by space means what it actually doing

Means It will concatenate the first string before the first space in first string and add second string in the same way.

Quote:
what is the difference b/w Delimited by Space and Delimited by Size?

I hope Size would transfer whole string regardless of character, but space would delimit the strings when find character SPACE.
Back to top
View user's profile Send private message
chiranjeevi_mca

New User


Joined: 19 Feb 2006
Posts: 27

PostPosted: Thu Jul 27, 2006 10:53 am    Post subject: Re: STRING
Reply with quote

Hi,


01 a pic x(10)
01 b pic x(10)
01 c pic x(20)


think * is space

move "01234*****" to a
move "56789*****" to b


----------------------
delimited by space
means preceding data of space will be stored.

string a b delimited by space into c

c contains "0123456789**********"


-----------------------------------
string a b delimited by size into c

c contains "01234*****56789*****"
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 Difference between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 2 Sun Nov 06, 2016 8:11 pm
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Format to pipe delimited with variabl... pshongal SYNCSORT 6 Wed Sep 14, 2016 2:48 pm


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