View previous topic :: View next topic
|
Author |
Message |
ravidhiman
New User
Joined: 09 Oct 2006 Posts: 23 Location: London, UK
|
|
|
|
Hi All,
I want to transfer a file from one mainframe region to another mainframe region. The file has some comp-3 fields. when I try to transfer, some of the comp-3 data changes into some other format data.
I am using following jcl TO transfer file:
//FTP EXEC PGM=FTP,PARM='000.000.000.00 00 (EXIT'
//SYSPRINT DD SYSOUT=*
//DD01 DD DSN=xxxxxx.YYYY.zzzzzz,DISP=SHR
//SYSIN DD *
Username PASSWORD
PUT //DD:DD01 'xxxxxx.YYYY.zzzzzz'
MODE S
IBMKANJI
QUIT
/*
Could any body please let me know how to transfer file with comp-3 data?
I know, one way is to transfer the file into binary format and later change the binary format into actual format.
Is there any option available in sysin statement to transfer comp-3 data as it is?
Thanks & Regards
Ravi |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Quote: |
into some other format data. |
looks like you have a code page problem. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Is the file FB or VB |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Code: |
//FTP EXEC PGM=FTP,PARM='000.000.000.00 00 (EXIT'
//SYSPRINT DD SYSOUT=*
//DD01 DD DSN=xxxxxx.YYYY.zzzzzz,DISP=SHR
//SYSIN DD *
Username PASSWORD
PUT //DD:DD01 'xxxxxx.YYYY.zzzzzz'
MODE S
IBMKANJI
QUIT
/* |
Let's see -- you sign on to the system, send the file, after which you set stream mode and change the type to IBMKANJI. The question I have, is why do this after you've sent the file? The transfer isn't going to go back and change itself because you added commands after the transfer is done.
According to my manual, setting IBMKANJI type is the same as setting TYPE EBCDIC so packed decimal and binary values should transfer correctly -- but if you set the type after the transfer is done, that will have no impact upon the data transferred. |
|
Back to top |
|
|
ravidhiman
New User
Joined: 09 Oct 2006 Posts: 23 Location: London, UK
|
|
|
|
Hello Expat,
The file is FB file.
Hello Robert,
I made the changes, as you mentioned and ran the job again.
Now the sysin statement in the job is:
//SYSIN DD *
UUUUUUUU PPPPPPPP
IBMKANJI
PUT //DD:DD01 'XXXXXX.YYYYY.ZZZZZ'
MODE S
QUIT
/*
The file transferred successfully. I quickly checked few comp-3 values, It was perfect. Now, no problem in data transfer.
Sorry, my JCL was wrong. You are right; IBMKANJI should mention before PUT statement.
Many thanks for your help.
I will check the entire file for all comp-3 values in file and will let you know the results.
Thanks & Regards
Ravi Dhiman |
|
Back to top |
|
|
|