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: 6968
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: 8117
Location: East Dubuque, Illinois, USA

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 copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts NDM syntax checking without actually ... GAPX1 All Other Mainframe Topics 0 Wed Jun 07, 2017 2:36 am


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