Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: FTP COMP-3 data from one mainfame region to another mainfram
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Dec 21, 2009 5:38 pm    Post subject:
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: 7931
Location: Bellevue, IA

PostPosted: Mon Dec 21, 2009 5:44 pm    Post subject:
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    Post subject: Reply to: FTP COMP-3 data from one mainfame region to anothe
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts INDEPENDENT CICS TS 4.1 MRO REGION UP... Kyle Carroll CICS 0 Wed Dec 14, 2016 6:55 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us