MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FTP Issue -> File stored with Quotes

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
mainframemouli
Beginner


Joined: 23 Feb 2005
Posts: 87
Topics: 33

PostPosted: Tue Jun 02, 2009 10:14 pm    Post subject: FTP Issue -> File stored with Quotes Reply with quote

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
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Tue Jun 02, 2009 11:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
jyoung
Beginner


Joined: 10 Nov 2005
Posts: 36
Topics: 2
Location: Flint, MI

PostPosted: Wed Jun 03, 2009 5:57 am    Post subject: Reply with quote

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
View user's profile Send private message
taltyman
JCL Forum Moderator
JCL Forum Moderator


Joined: 02 Dec 2002
Posts: 310
Topics: 8
Location: Texas

PostPosted: Fri Jun 05, 2009 2:49 pm    Post subject: Reply with quote

does your destination support a file name with a blank as part of the name?
Back to top
View user's profile Send private message
mainframemouli
Beginner


Joined: 23 Feb 2005
Posts: 87
Topics: 33

PostPosted: Mon Jun 08, 2009 6:41 am    Post subject: Reply with quote

Thanks semigeezer , It worked.

taltyman,
Yes it supports blank as a part of the file name.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group