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

Identifying Packed decimal fields in a file


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kkrishnakanth

New User


Joined: 27 Oct 2007
Posts: 7
Location: India

PostPosted: Mon Mar 30, 2009 6:52 pm
Reply with quote

I have a requirement, wherein I need to create a tool, which will transfer a mainframe file to PC. The MF file may have packed decimal fields in it. If any such field is present, then I need to convert it to decimal before transmitting it to PC. Now my questions are,

1) Is there any way to separate out packed decimal fields in a file, with out knowing their position & length?
2) What can be the possible approach for creating this tool?
3) I am planning to convert all the PD fields to decimal first and then I am planning to use FTP for transmission of the file to PC. Is there any other way of doing it?

Krishna Kanth K.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Mon Mar 30, 2009 7:06 pm
Reply with quote

1. No. It cannot be done. For example, you have hex value '97994D'. This could be -97994 as a packed decimal value, or it could be 'pr(' in lower case EBCDIC characters -- part of a Unix command, for example. Which is it? You can pick either, or both, depending ....
2. Forget the tool as #1 indicates you have to know the position and length of packed decimal fields first.
3. "FTP for transmission of the file to PC" -- how? If the mainframe initiates the FTP session, the PC will be the server. Unless you're specifically planning on using a server, transmission to most desktops will fail as they are not set up to be FTP servers.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts IGYPG3178-I when compiling a pgm read... COBOL Programming 6
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts Sorting date into YYYYMMDD, and creat... DFSORT/ICETOOL 13
No new posts To Sort detail records in a file with... SYNCSORT 5
No new posts To Populate Trailer cnt in the file w... SYNCSORT 1
Search our Forums:


Back to Top