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
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm


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