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
 
PL/1 - check for spaces, call COBOL program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: PL/1 - check for spaces, call COBOL program
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: 788
Location: Chennai, India

PostPosted: Mon Apr 07, 2008 3:34 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

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