IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

FTP COMP-3 data from one mainfame region to another mainfram


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ravidhiman

New User


Joined: 09 Oct 2006
Posts: 23
Location: London, UK

PostPosted: Mon Dec 21, 2009 5:24 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Dec 21, 2009 5:38 pm
Reply with quote

Quote:
into some other format data.

looks like you have a code page problem.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Dec 21, 2009 5:38 pm
Reply with quote

Is the file FB or VB
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Mon Dec 21, 2009 5:44 pm
Reply with quote

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
View user's profile Send private message
ravidhiman

New User


Joined: 09 Oct 2006
Posts: 23
Location: London, UK

PostPosted: Mon Dec 21, 2009 6:47 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 4
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top