IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

PL/1 Field declarations to COBOL


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sudhaaa

New User


Joined: 24 Mar 2005
Posts: 51

PostPosted: Fri Aug 29, 2008 12:05 pm
Reply with quote

Hi,

One of my Pl/1 copybook is having below fields. I need to create a COBOL copybook for the same. Please advise

DCL 1 WK_GROUP;
5 WK_NUMBER FIXED DEC;
5 WK_SIM FLOAT DEC;

I referred PL/1 manuals to find FIXED DEC will occupy 5 bytes, where FLOAT DEC occupy 6 bytes. But not sure how I can define these in Cobol

Also, please let me know what the conversion for FIXED BINARY and FLOAT BINARY

Kindly suggest if this need to be posted under Mainframe Cobol section...

Sudhaaa
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Fri Aug 29, 2008 5:08 pm
Reply with quote

Suggestion: use the link at the top of the page to get to the PL/I manual to determine the default attributes for FIXED and FLOAT variables. Then use the same link to access the COBOL manual to determine which COBOL attributes are needed to match the PL/I attributes.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top