Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
To create Focus MFD for decimal and Packed decimal fields

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
raj_mainframe08

New User


Joined: 11 Sep 2007
Posts: 65
Location: Gurgaon

PostPosted: Tue Dec 29, 2009 6:35 pm    Post subject: To create Focus MFD for decimal and Packed decimal fields
Reply with quote

Hi,

My requirement is to create MFD in Mainframe Focus to read the following fields in COBOL File.


Code:

SG02-CTRB-EMP-PCT               PIC V99.             
SG02-CTRB-EWD-PCT               PIC 9(1)V99   COMP-3.



I created the Focus MFD as below for the above fields but not getting the correct results...



Code:

FILE=B548290        ,SUFFIX=FIX                                     
SEGNAME=B548290                                                     
FIELDNAME   =CTRB.EMP.PCT       ,E02         ,I3.2     ,Z2       ,$
FIELDNAME   =CTRB.EWD.PCT       ,E03         ,I4.2     ,P2       ,$



i.e. The value in cobol file field SG02-CTRB-EMP-PCT and SG02-CTRB-EWD-PCT is 0.67 and .81 but when i am reading that file with Focus MFD i created as above, i am getting 67.00 and 81.00. Can somebody please help me on what I'm doing wrong here?
Back to top
View user's profile Send private message

khadar78
Warnings : 1

New User


Joined: 29 Apr 2008
Posts: 16
Location: Mysore

PostPosted: Thu Dec 31, 2009 5:29 pm    Post subject:
Reply with quote

I suggest you to use Packed decimal in the field structure.
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts How do I create a mainframe monitorin... anjali.bisht All Other Mainframe Topics 4 Fri Sep 01, 2017 2:20 pm
This topic is locked: you cannot edit posts or make replies. rexx to create a tso command Bharath Vikraman CLIST & REXX 1 Tue Aug 08, 2017 3:32 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts How do you create Eclipse based dialogs jasorn IBM Tools 0 Thu Aug 03, 2017 5:05 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us