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
 
Difference betweeen DELIMITED BY SIZE and DELIMITED BY Space

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

New User


Joined: 02 Apr 2007
Posts: 12
Location: Chennai

PostPosted: Wed May 16, 2007 5:33 pm    Post subject: Difference betweeen DELIMITED BY SIZE and DELIMITED BY Space
Reply with quote

I want to know the difference betweeen DELIMITED BY SIZE and DELIMITED BY ' ' (space).

for eg: the piece of code is:
STRING PTMS-CDS-SYSTEM-ID DELIMITED BY SIZE
'?' DELIMITED BY SIZE
PTMS-CDS-LESSOR DELIMITED BY SIZE
'?' DELIMITED BY SIZE
PTMS-CDS-DIVISION-CODE DELIMITED BY SIZE
'?' DELIMITED BY SIZE
PTMS-CDS-GL-CODE DELIMITED BY SIZE
'?' DELIMITED BY SIZE
PTMS-CDS-COMPANY-CODE DELIMITED BY ' '
'?' DELIMITED BY SIZE
PTMS-CDS-COMPANY DELIMITED BY ' '
INTO WS-OUT-PTMS-CODES-OUT.


Since this is different for another file in the same, program, I am getting confused.
Please explain in detail the meaning of the syntax.

Thanks,
Karthikeyan.
Back to top
View user's profile Send private message

Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Wed May 16, 2007 5:50 pm    Post subject:
Reply with quote

Quote:
difference betweeen DELIMITED BY SIZE and DELIMITED BY ' ' (space).


DELIMITED BY SIZE - Actual size of data item will be considered as delimiter
DELIMITED BY ' ' (SPACES) - In the sting as soon as SPACE is encountered that is considered as delimiter.
Quote:
Please explain in detail the meaning of the syntax.


For more explanation you can refer to Quick Ref or COBOL manual.
Back to top
View user's profile Send private message
pcoreddy

New User


Joined: 14 Mar 2007
Posts: 24
Location: Mysore

PostPosted: Wed May 16, 2007 5:57 pm    Post subject: Re: String delimited
Reply with quote

77 ws-variable pic x(11) value 'chandrareddy'
77 ws-var2 pic x(15)


STRING ws-variable DELIMITED BY SIZE INTO ws-var2

the ws-variable enire data will be transfed to ws-var2 from left to right untill right most char moved .
STRING ws-variable DELIMITED BY 'd' INTO ws-var2

the ws-variable data will be transfed to ws-var2 from left to right untill find the char d
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
This topic is locked: you cannot edit posts or make replies. Difference between EQUAL and EQUAL TO... jithinraghavan COBOL Programming 3 Thu Apr 19, 2018 2:22 am
No new posts VSAM - Accessing beyond record size Benchwarmer JCL & VSAM 6 Wed Apr 11, 2018 9:20 pm
No new posts VSAM File free space sancraig16 JCL & VSAM 13 Fri Mar 30, 2018 1:02 am
No new posts VSAM BUFFER SPACE? John Poulakos CICS 17 Thu Mar 22, 2018 2:54 am
No new posts *MASTER* address space abending at IPL Alan Playford All Other Mainframe Topics 2 Mon Mar 12, 2018 8:02 am

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