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
 
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: 8199
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
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 1 Wed Dec 13, 2017 3:07 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm

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