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
 

 

Identifying Packed decimal fields in a file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Identifying Packed decimal fields in a file
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: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Mon Mar 30, 2009 7:06 pm    Post subject:
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    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
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 Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm


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