PDF File tranfer from windows server to Uinix server



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

PDF File tranfer from windows server to Uinix server

Postby prakashgbl » Mon Feb 28, 2011 5:58 pm

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.
prakashgbl
 
Posts: 1
Joined: Mon Feb 28, 2011 5:29 pm
Has thanked: 0 time
Been thanked: 0 time

Re: PDF File tranfer from windows server to Uinix server

Postby MrSpock » Mon Feb 28, 2011 6:19 pm

I'm confused.

What language is that code? Or, what program or product is it for?
User avatar
MrSpock
Global moderator
 
Posts: 807
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: PDF File tranfer from windows server to Uinix server

Postby Robert Sample » Mon Feb 28, 2011 6:29 pm

Using text for transfer probably won't work for PDF files since they are binary.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: PDF File tranfer from windows server to Uinix server

Postby NicC » Mon Feb 28, 2011 6:47 pm

What type of machine is the Unix machine?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: PDF File tranfer from windows server to Uinix server

Postby MrH » Mon Feb 28, 2011 8:16 pm

You hit the problem right on the head: mode type=text

Send in binary, problem solved.
MrH
 

Re: PDF File tranfer from windows server to Uinix server

Postby dick scherrer » Tue Mar 01, 2011 1:13 am

Hello and welcome to the forum,

i am calling the below program in JCL job
Yet you posted no JCL. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: PDF File tranfer from windows server to Uinix server

Postby MrSpock » Tue Mar 01, 2011 3:17 am

What IS that code exactly?
User avatar
MrSpock
Global moderator
 
Posts: 807
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post