how to encrypt a file with ebcdic conversion


 
Thread Tools Search this Thread
Operating Systems HP-UX how to encrypt a file with ebcdic conversion
# 1  
Old 08-18-2011
CPU & Memory how to encrypt a file with ebcdic conversion

Hi guys!

My sql*plus program generating dat file. so this dat file i want to write in destination sever path with ebcdic formate through SFTP only, because my destination server is mainframe it can read only ebcdic formate files only.
could you please help on this........

i was written code as bellow but its taking the entire dat file and writing in single line with junk characters at destiation server path file.

please any one help on this..........
Code:
sftp -v tfinftp@$v_dest_host <<Endsftp 
!dd if=$FTP_PATH/outbound/gl/$FILE_NAME1 of=$FTP_PATH/outbound/gl/$FILE_NAME1.tmp conv=ebcdic
put $FTP_PATH/outbound/gl/$FILE_NAME1 '$FILE_NAME1'
!rm $FTP_PATH/outbound/gl/$FILE_NAME1.tmp
!pwd
get '$FILE_NAME1'
quit
Endsftp

Moderator's Comments:
Mod Comment Please use [code] and [/code] tags when posting code, data or logs etc. to preserve formatting and enhance readability, thanks.

Last edited by sgangadhar19; 08-19-2011 at 05:45 AM.. Reason: code tags
# 2  
Old 08-18-2011
Is the line $FILE_NAME1.tmp conv=ebcdic on a different line? Atleast it looks on a new line looking at your post.
It should be all on one line
PHP Code:
[CODE]
!
dd if=$FTP_PATH/outbound/gl/$FILE_NAME1 of=$FTP_PATH/outbound/gl/$FILE_NAME1.tmp conv=ebcdic[/CODE
---------- Post updated at 08:31 AM ---------- Previous update was at 08:29 AM ----------

Never mind, it looked on a new line since OP did not use code tags.
# 3  
Old 08-18-2011
Seems others have/had this problem too:
Issue after SFTPing export file to mainframe sytem - dBforums

Does the mainframe support scp as well? Maybe this doesn't garbled the newlines to blanks.
# 4  
Old 08-19-2011
hi
please i want to know why ebcdic formate writing in single line of out put.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

EBCDIC to ASCII conversion

Hi, We have a mainframe file which is in EBCDIC format.We dont have direct access to mainframe ,client has provided us the mainframe file.The mainframe file is containing pact data(COMP1 ,COMP2 etc) which are unreadble.Can anyone suggest me how to convert this kind of ebcdic file to ascii... (11 Replies)
Discussion started by: swapna_1990
11 Replies

2. UNIX for Advanced & Expert Users

EBCDIC to ASCII conversion

Hi, I have a input file which is EBCIDIC and it has packed decimals. Can anyone help me to convert EBCIDIC file to ASCII(Need to convert even Packed decimal values also to normal format). Thanks swapna (12 Replies)
Discussion started by: swapna_1990
12 Replies

3. Shell Programming and Scripting

Need help for EBCDIC TO ASCII conversion through UNIX

Hi All , We have a mainframe file which is in EBCDIC format.We dont have direct access to mainframe ,client has provided us the mainframe file in unix box.The mainframe file is containing pact data(COMP1 ,COMP2 etc) which are unreadble.Can anyone suggest me how to convert this kind of ebcdic... (7 Replies)
Discussion started by: STCET22
7 Replies

4. UNIX for Advanced & Expert Users

Conversion from EBCDIC to Ascii OR unicode

I have a file in my Unix ( SOLARIS ) with EBCDIC format...I want this file to read in ASCII OR unicode...Is it possible with UNIX to convert this file on ASCII OR UNICODE format from EBCDIC format? I was searching through web and found only conversion table :( Request Rejected Below is... (16 Replies)
Discussion started by: joshilalit2004
16 Replies

5. UNIX for Advanced & Expert Users

Conversion of data - ebcdic to ascii

Hi, I want to convert ebcdic values to ascii values. Are there anyany specific c++ libraries with g++ compiler, which can do it ? gcc version 4.1.2 20080704 (Red Hat 4.1.2-54) (0 Replies)
Discussion started by: tostay2003
0 Replies

6. UNIX for Dummies Questions & Answers

Conversion from EBCDIC to ASCII

when i try to convert a mainframe EBCDIC file to ASCII ,i dont see correct file this is the source file ... (3 Replies)
Discussion started by: venkatvelpula
3 Replies

7. UNIX for Advanced & Expert Users

UTF-8 to EBCDIC conversion in UNIX

Hi all, At present a file from AS400 system is being FTPed to an AIX system. Now, a similar file needs to be sent from our Unix box (Solaris) Is there any tool available which does the conversion in Unix from UTF-8 to EBCDIC? Any suggestions/ pointers are really appreciated. Thanks,... (4 Replies)
Discussion started by: sridhar_423
4 Replies

8. UNIX for Dummies Questions & Answers

Conversion from EBCDIC to HEX

Hello, Is there any utility around able to deal with the conversion of some EBCDIC coded string into an hexadecimal value? Thanks (1 Reply)
Discussion started by: Indalecio
1 Replies

9. Shell Programming and Scripting

ascii to ebcdic conversion

Hello, I need a program for ascii to ebsdic conversion. If anybody can help, it'll be greatly appreciated. Thanks. (1 Reply)
Discussion started by: er_ashu
1 Replies

10. UNIX for Dummies Questions & Answers

Unix to EBCDIC conversion

Hi, I am using HPUX 11. There is a command to convert Unix formatted data to Dos formatted data called 'ux2dos'. Is there a similar command to convert Unix formatted data to EBCDIC format? Many thanks Helen :) (2 Replies)
Discussion started by: Bab00shka
2 Replies
Login or Register to Ask a Question