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
 

 

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: 785
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
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm


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