COMP-3 File transmission


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting COMP-3 File transmission
# 1  
Old 02-15-2007
COMP-3 File transmission

Guys,

i need to transfer a file which contains both display and comp-3 fields from unix to mainframe. Cyberfusion , FTP doesn't work since they treat display and comp-3 fields same.

Any Solution in this regard will be appreciated.

Thanks,
Sharif.S
# 2  
Old 02-15-2007
Did you set the transfer to binary? What is the source/destination machine? byte order might be a problem. (Endianness)
# 3  
Old 02-15-2007
Quote:
Originally Posted by sharifhere
FTP doesn't work since they treat display and comp-3 fields same.
I don't see why that would be. A "ascii" transfer from unix to a non-unix box means that a newline character will be replaced with whatever the destination box deems appropriate. With a mainframe, (like dos) it will be replaced with a newline/carriage return combination. Since one byte is replaced with 2 bytes the file will grow in size should this happen. Did it? A unix newline character is hex 0A which is not legal in a comp-3 field. Still since you are not moving text, you should use a binary transfer. And comp-3, aka packed decimal, should bypass endian issues as easily as text does.

Don't be too quick to blame this on the transfer. I would suspect that the unix program which created the data and the mainframe program that is reading the data are not singing from the same songsheet.
# 4  
Old 02-16-2007
Thanks for ur reply. I tried transferring in binry still the same problem occured. Junk characters replaced the packed fields in the destinaiton file.

Source Machine : Unix (Solaris 9.0)
Destination : Mainframe (OS/390)
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

File transmission logs in UNIX

Can any one give a explaination with examples on how to understand file transmission log files in Unix for inbound and outbound traffic. (1 Reply)
Discussion started by: ITDev01
1 Replies

2. Shell Programming and Scripting

curl into a shell script (variable transmission): need help

Hey I'm writting a little shell script, and I started using curl with it today. I would like to login into a website using curl (--data argument). This part is working, curl sent me the webpage that we see when we log in this website. Problem: This is a temporary page. When I log in this... (0 Replies)
Discussion started by: Link_
0 Replies

3. AIX

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... (5 Replies)
Discussion started by: sekhar gajjala
5 Replies

4. UNIX for Advanced & Expert Users

Geeting the error during file transmission

I am facing the following issue during file transmission from one of our application to SFTP server.Here the fact is that i am geeting the error message but the file transmission is happening properly.The message i get is as follows: sftp> cd inbox sftp> ... (3 Replies)
Discussion started by: bimal3099
3 Replies

5. Shell Programming and Scripting

Comp-3 conversion possible with Shell Scripting or PERL?

I guess the subject asks it all, but I am wondering (before I go and code a COBOL module) if conversion of regular ASCII data to COMP-3 is possible on a UNIX environment (AIX 5.1)? Any help would be appreciated! Thanks, Dave (13 Replies)
Discussion started by: dfran1972
13 Replies

6. UNIX for Dummies Questions & Answers

lftp transmission error help

We have installed lftp version 3.4.7. When trying to send a file it loops on sending. It appears that the lftp sends about 130k then attempts to verify transmission (with a head command maybe). The receiver is pulling the data immediatly behind the firewall and does not appear to be answering... (0 Replies)
Discussion started by: Iversog
0 Replies

7. 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

8. OS X (Apple)

comp hardware comparing

www.insaen.nl (2 Replies)
Discussion started by: sk8parkinsaen
2 Replies

9. Programming

direct transmission of files via TCP/IP

Hi, is it possible to write files via write() to a socket and read it on the other side via read(), without going through buffers? Iif not via write() and read() are there other possibilities? thanks darkspace (5 Replies)
Discussion started by: darkspace
5 Replies
Login or Register to Ask a Question