The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
grep unix.com with google



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

Reply
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-18-2009
Registered User
 

Join Date: Nov 2009
Posts: 4
Problem in ftpying the datasets containing comp values to AIX from mainframe

Hi,

When i am trying to ftp COBOL generated data sets which contain comp values to AIX in ASCII mode. the comp values are getting corrupted. If i ftp the data set in binary mode it is working properly, but for this i have to change some compiler options in the COBOL. Also if i want to use the data set outside a COBOL program for any calculations i am unable to use it as it is in binary.

Thanks.
Somasekhar Gajjala.
  #2 (permalink)  
Old 11-18-2009
Registered User
 

Join Date: Nov 2001
Location: Flint, MI
Posts: 232
What I have done in the past for this is to reformat the comp values to a text format with a sign on the end to tell if it is negative or positive.
  #3 (permalink)  
Old 11-19-2009
Registered User
 

Join Date: Nov 2009
Posts: 4
Can you please tell the possible process which you used to reformat the data to ascii.

Thanks and regards,
Somasekhar Gajjala.
  #4 (permalink)  
Old 11-20-2009
Registered User
 

Join Date: Nov 2001
Location: Flint, MI
Posts: 232
What mainframe operating system do you have... IBM/MVS, IBM/VSE, etc?
  #5 (permalink)  
Old 11-21-2009
Registered User
 

Join Date: Nov 2009
Posts: 4
IBM/MVS
  #6 (permalink)  
Old 11-23-2009
Registered User
 

Join Date: Nov 2001
Location: Flint, MI
Posts: 232
Hi,
I have attached a cobol program that does what I described. Also sample JCL. The cobol program was originally written for use on VSE, but now works under MVS. You might also check out the forums at:MVSFORUMS.com :: Index . They probably could come up with a better solution as this was written with an older version of cobol.
Attached Files
File Type: txt HMPA0009.txt (9.0 KB, 12 views)
File Type: txt PGLHU01.txt (1.0 KB, 9 views)
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Copy data from zfs datasets fugitive SUN Solaris 2 07-06-2009 02:18 AM
Collaborative Filtering on Skewed Datasets Linux Bot UNIX and Linux RSS News 0 05-22-2008 11:00 PM
COMP-3 File transmission sharifhere Shell Programming and Scripting 3 02-16-2007 03:38 AM
Problem with comp built for Linux.. Tony Empire UNIX for Dummies Questions & Answers 18 11-18-2004 10:13 PM
comp hardware comparing sk8parkinsaen OS X (Apple) 2 03-22-2004 05:40 AM



All times are GMT -4. The time now is 02:20 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0