View previous topic :: View next topic |
Author |
Message |
mainframemouli Beginner
Joined: 23 Feb 2005 Posts: 87 Topics: 33
|
Posted: Tue Jun 02, 2009 10:14 pm Post subject: FTP Issue -> File stored with Quotes |
|
|
I am trying to FTP a mainframe file into PC location , The file is transferred properly but the file name in stored with Quotes.
But I don't want the quotes to be there in my file name.
My ftp is as below
Code: |
//JOBLIB INCLUDE MEMBER=JOBLIS1
//*
//*--------------------------------------------------------------*
//* SENDPC - Send files to my PC *
//*--------------------------------------------------------------*
//*
//SENDPC EXEC PGM=FTP,REGION=4M,PARM='IP Address'
//*
//SYSIN DD *
Userid
Password
ascii
LCD ..
cd /usr/sdc/aaa/bb
put 'KGL.DFGK.AAA.BBB.CCC(0)' 'record count.txt'
CLOSE
QUIT
/*
//SYSPRINT DD SYSOUT=*
|
Here the file name in PC is stored as 'record count.txt' (Quotes is also coming as a file name) , I need just record count.txt (not with quotes)
I tried running giving the below statement
put 'AGL.DFGS.OM.OM970.ASC.RECCNT.FILE(0)' record count.txt
(removed quotes from destination file name)
But by this the job is running fine with RC=0 , but data is not transferred , can anyone throw some light on this. |
|
Back to top |
|
|
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Tue Jun 02, 2009 11:26 pm Post subject: |
|
|
Ihven't tried it, but Unix usually uses double quotes. Try that for the PC file name. _________________ New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html. |
|
Back to top |
|
|
jyoung Beginner
Joined: 10 Nov 2005 Posts: 36 Topics: 2 Location: Flint, MI
|
Posted: Wed Jun 03, 2009 5:57 am Post subject: |
|
|
This is how we use FTP:
Code: |
//******************************************************
//FTPSTEP EXEC PGM=FTP
//SYSPRINT DD SYSOUT=*
//OPEXT DD DSN=PGLHU.PA.OP.EXTRACT(+1),DISP=SHR
//OUTPUT DD SYSOUT=*
//INPUT DD *
000.00.00.00 (exit
userid password
site dcbdsn=pglhu.pa.op.extract
put //DD:OPEXT oprevnu/oprevnu
quit
|
|
|
Back to top |
|
|
taltyman JCL Forum Moderator
Joined: 02 Dec 2002 Posts: 310 Topics: 8 Location: Texas
|
Posted: Fri Jun 05, 2009 2:49 pm Post subject: |
|
|
does your destination support a file name with a blank as part of the name? |
|
Back to top |
|
|
mainframemouli Beginner
Joined: 23 Feb 2005 Posts: 87 Topics: 33
|
Posted: Mon Jun 08, 2009 6:41 am Post subject: |
|
|
Thanks semigeezer , It worked.
taltyman,
Yes it supports blank as a part of the file name. |
|
Back to top |
|
|
|
|