Problem in ftpying the datasets containing comp values to AIX from mainframe


 
Thread Tools Search this Thread
Operating Systems AIX Problem in ftpying the datasets containing comp values to AIX from mainframe
# 1  
Old 11-18-2009
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  
Old 11-18-2009
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  
Old 11-19-2009
Can you please tell the possible process which you used to reformat the data to ascii.

Thanks and regards,
Somasekhar Gajjala.
# 4  
Old 11-20-2009
What mainframe operating system do you have... IBM/MVS, IBM/VSE, etc?
# 5  
Old 11-21-2009
IBM/MVS
# 6  
Old 11-23-2009
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

AIX Forum: FTP from AIX to Mainframe

This discussion thread is an extension to what was discussed in Shell scripting section. Please refer the post for the requirement: Requirement Post - Click Here The whole thread - Click Here I would like to know how I can use NDM to transfer file from AIX to Mainframe and to verify the... (3 Replies)
Discussion started by: TechGyaann
3 Replies

2. Shell Programming and Scripting

FTP from AIX to Mainframe

Hi All, This is the scenario:- I am writing a script to automate FTP files from AIX to Mainframe. ( Binary mode, passive connection) FTP the currently available files(poll a directory to find the list) and put it to mainframe in one connection instance Verify if all the files are copied... (24 Replies)
Discussion started by: TechGyaann
24 Replies

3. UNIX for Dummies Questions & Answers

Who are all opening my datasets,?

Hi, I need a command/script, who opened my dataset, consider a situation like, if a user has opened the dataset few days back then, that command/script should list his/her id. I don't want audit on my dataset, i need only list of users who are using my dataset. Thank you. (10 Replies)
Discussion started by: subbarao12
10 Replies

4. Shell Programming and Scripting

shell script returning error code 2 from AIX to Mainframe

Hi, I have a shell script which is residing on AIX which is triggered by Mainframe through Connect Direct. The shell script creates several files and sends those files to mainframe using Connect Direct. The shell script is working fine, still it is returning exit code 2 to mainframe. What... (0 Replies)
Discussion started by: Yogesh Aggarwal
0 Replies

5. Shell Programming and Scripting

FTPying files from one sever to another server but into specified file.

Hi Friends, My requirement is - I have to FTP a list of files from one server to another sever. I am using following code : ftp -i -n << EOF >> abc.txt open $COM_FTP_RHOST user $COM_FTP_USER $COM_FTP_PASSWORD cd $COM_FTP_PATH ( some folder ) ls -ltr filename* bye EOF After... (1 Reply)
Discussion started by: sree143reddy
1 Replies

6. Shell Programming and Scripting

Need shell script for ftpying multiple files

Hi All, I am a beginner for shell programming. I have a requirement to ftp multiple files. Here are the details. I have around thiry files in one directory, I want a shell script which selects 5 files at a time and does ftp them to another host . After the transfer for first files is... (0 Replies)
Discussion started by: srikanthn
0 Replies

7. AIX

ODBC Connectivity between Oracle10g on AIX and Mainframe

Hi, I have a task of setting up connectivity between Oracle 10g (AIX) and Mainframe (1 library). Went through couple of documents, forums, blogs etc. MY understanding is ODBC Generic Connectivity is free from Oracle side. Question: (may be dumb to you) 1. Has anybody done this and would... (3 Replies)
Discussion started by: jvmani_1
3 Replies

8. AIX

Problems with SSH/SFTP between AIX and Mainframe

Hi, I'm not sure if this has been solved in this forum already but please do help me out if possible. Basically, I've already setup a passwordless SSH connection between 2 AIX IDs (say ID-1 and ID-2) with a Mainframe server ID (say MVSID). I'm able to successfully do an SSH from the AIX server to... (1 Reply)
Discussion started by: sambeet
1 Replies

9. UNIX for Dummies Questions & Answers

Problem with comp built for Linux..

I built a PC I intended on using to run Linux. It was using a AMD XP 2000 processor, had a 80 gig hard drive, and 256 mb of ram. I got it all connected and working and installed OpenLinux (from book "Learn Linux in 24 hours" that came with a instillation CD). My intent was to take about a month... (18 Replies)
Discussion started by: Tony Empire
18 Replies

10. OS X (Apple)

comp hardware comparing

www.insaen.nl (2 Replies)
Discussion started by: sk8parkinsaen
2 Replies
Login or Register to Ask a Question