MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Required Cobol equivalent of PL/1 code

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
kadamd1
Beginner


Joined: 18 Jun 2004
Posts: 2
Topics: 2

PostPosted: Wed Aug 11, 2004 9:06 am    Post subject: Required Cobol equivalent of PL/1 code Reply with quote

We have the following code in PL1.
What is the equivalent of the following definitions in COBOL?

01 P_COMPANY_CODE PIC '999B';

01 KEY,
05 COMPANY FIXED (3,0),
05 SUBSIDIARY FIXED (3,0);
01 KEY-CO BASED(ADDR(COMPANY)),
05 1ST-BYTE-COMPANY CHAR(01),
05 C0-4BITS BIT(4),
05 C0-SIGN BIT(4);
01 KEY-SUB BASED(ADDR(SUBSIDIARY)),
05 1ST-BYTE-SUB CHAR(01),
05 SUB-4BITS BIT(4),
05 SUB-SIGN BIT(4);
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Tue Aug 31, 2004 6:03 am    Post subject: Reply with quote

kadamd1,

check this link for equivalent Data Types for PL/I to COBOL

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/CEEA4120/11.4.2?SHELF=&DT=20040115140447&CASE=

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group