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

PL/1 - check for spaces, call COBOL program


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
naveenriaz

New User


Joined: 26 Jan 2007
Posts: 3
Location: Chennai, India

PostPosted: Fri Apr 04, 2008 9:28 pm
Reply with quote

Hi All,

Queries:

1) How can we check for spaces in PL/1?
Blank 'b' can be used as IF VAR = 'bbbbb'
but what if i need to check for spaces in a larger variable say 50 bytes.

2) How can I call a COBOL subroutine from PL/1?


Thanks in Advance.
Naveen Riaz
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Mon Apr 07, 2008 3:34 pm
Reply with quote

Naveen,
Quote:
How can I call a COBOL subroutine from PL/1?

These links will help you.

Communicating between COBOL and PL/I
Calling between COBOL and PL/I
Supported Data Types between COBOL and PL/I
Sample PL/I to COBOL Applications
Back to top
View user's profile Send private message
naveenriaz

New User


Joined: 26 Jan 2007
Posts: 3
Location: Chennai, India

PostPosted: Mon Apr 07, 2008 9:34 pm
Reply with quote

thanks for ur help..
Back to top
View user's profile Send private message
roopannamdhari
Warnings : 1

New User


Joined: 14 Sep 2006
Posts: 71
Location: Bangalore

PostPosted: Tue Apr 08, 2008 10:51 am
Reply with quote

Hi,

is there any option in PL\1 which serves function similar to Keyword 'SPACE' in Cobol?

In COBOL just we can need to code:

Code:

if VAR = space


Thanks,
Back to top
View user's profile Send private message
roopannamdhari
Warnings : 1

New User


Joined: 14 Sep 2006
Posts: 71
Location: Bangalore

PostPosted: Thu Apr 10, 2008 10:27 am
Reply with quote

Hi naveenriaz,


Code:
1) How can we check for spaces in PL/1?
Blank 'b' can be used as IF VAR = 'bbbbb'
but what if i need to check for spaces in a larger variable say 50 bytes.



try to use below metioned code for this requirement

Code:
If var = (50)'b';

here [b]b[/b] means space.


thanks,
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 -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top