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: 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
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm


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