Page 1 of 1

PDF File tranfer from windows server to Uinix server

PostPosted: Mon Feb 28, 2011 5:58 pm
by prakashgbl
Hi Experts,

In current requirement i need transfer the PDF files from windows to UNIX machine using JCL script,i'm able to transfer the pdf files to unix server but not able to view the data as i'm getting the below error
"Adobe reader could not open the '9245843.pdf' because it is either not a supported file type or because the file has been damaged "

i am calling the below program in JCL job
####################################################
# Description :#
# # Modified :
####################################################
set _echo=yes
set halton=warn
set day=$(_date.dd)
set month=$(_date.mm)
set year=$(_date.yyyy)
open src=machine_name1 xfile=pwdfile1 tgt=mchine_name2 file=pwdfile2
status
mode type=text
cd src=path1
cd tgt=path2
attrib tgt createop=replace
COPY src=$(month)$(day)$(year)name.PDF tgt=$(month)$(day)$(year)name.PDF
quit

i have doubt in mode type from the above code--- "mode type=text" Can you please help me to find the solution.

Re: PDF File tranfer from windows server to Uinix server

PostPosted: Mon Feb 28, 2011 6:19 pm
by MrSpock
I'm confused.

What language is that code? Or, what program or product is it for?

Re: PDF File tranfer from windows server to Uinix server

PostPosted: Mon Feb 28, 2011 6:29 pm
by Robert Sample
Using text for transfer probably won't work for PDF files since they are binary.

Re: PDF File tranfer from windows server to Uinix server

PostPosted: Mon Feb 28, 2011 6:47 pm
by NicC
What type of machine is the Unix machine?

Re: PDF File tranfer from windows server to Uinix server

PostPosted: Mon Feb 28, 2011 8:16 pm
by MrH
You hit the problem right on the head: mode type=text

Send in binary, problem solved.

Re: PDF File tranfer from windows server to Uinix server

PostPosted: Tue Mar 01, 2011 1:13 am
by dick scherrer
Hello and welcome to the forum,

i am calling the below program in JCL job
Yet you posted no JCL. . .

Re: PDF File tranfer from windows server to Uinix server

PostPosted: Tue Mar 01, 2011 3:17 am
by MrSpock
What IS that code exactly?