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
 

 

Data type conversion from FOCUS to COBOL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Rajen

New User


Joined: 05 May 2005
Posts: 61

PostPosted: Sat Mar 03, 2007 9:26 pm    Post subject: Data type conversion from FOCUS to COBOL
Reply with quote

Hi,
I searched for Focus Data type conversion in the forum but couldnot find anything useful.

I have a fields with Cobol declaration as S9(9) COMP-3 and repective FOCUS declaration as P11.0 .

While running to Focus job is there any way to convert this COMP-3 fields to display format.

Please let me know if the requirement is not clear.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sun Mar 04, 2007 8:07 am    Post subject:
Reply with quote

Hello,

You should be able to move it to a Zoned Decimal field.
Back to top
View user's profile Send private message
h.dinesh

New User


Joined: 06 Dec 2006
Posts: 46
Location: Chennai

PostPosted: Wed Mar 07, 2007 11:48 am    Post subject:
Reply with quote

Rajen,

If you are trying to print in a Lotus file then there is no need to convert it. You may use:

Code:
ON TABLE SAVE AS <SAVE FILE NAME> FORMAT LOTUS


And if it is a PS then you can convert into alphanumeric and print

Code:
NEW_VAR /A6 = PCKOUT(OLD_VAR,6,NEW_VAR);


Dinesh
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 5 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 16 Thu Jul 13, 2017 2:11 pm
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am


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