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 Syntax

 
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
emdaya9
Beginner


Joined: 31 May 2005
Posts: 7
Topics: 2

PostPosted: Thu Jun 09, 2005 11:29 am    Post subject: FTP Syntax Reply with quote

Hi
I'm trying to FTP a TAPE Dataset to a Unix server using PGM=FTP thru a JCL(putting all the tape datasets inside a PARMLIB). But while doing its giving me 4e5 error which says that its unable to allocate the tape dataset for FTPing due to un availabilty of resources. In order to avaoid this I'm trying to add this Tape data set as a INPUT DD statement to the FTP step and then trying to FTP so that it tries to allocate tape dataset before calling FTP program. I dont know whether this approcah is correct or not. My doubt is shall I need to do any changes in the PARMLIB.

EXAMPLE PARMLIB:
PPGB.PARMLIB(SCBSTPUT) is
site umask 000
binary
put '&HLQIN..&FILEIN..DATAW&PR.&FN..B&BATCH..ZIP' b&BATCH..&PER._&N..ZIP

EXAMPLE JCL is

//PARM1001 EXEC PGM=PARM2FIL,PARM=('BATCH=&BATCH','PR=01',
// 'HLQIN=&HLQIN','FILEIN=&FILEIN','FN=A','PER=20050226',
// 'N=000')
//STEPLIB DD DSN=SCLMSRC.&SCLM1..LOAD,DISP=SHR
// DD DSN=SCLMSRC.&SCLM2..LOAD,DISP=SHR
// DD DSN=SCLMSRC.PROD.LOAD,DISP=SHR
//*
//TEMPLATE DD DSN=&HLQ.GBS.&FILE.DVR.UNIX.LOGIN(SCBSTF2&ENVIR),DISP=SHR
// DD DSN=&HLQ.GB.PARMLIB(SCBST&CUSTPRM.),DISP=SHR
// DD DSN=&HLQ.GB.PARMLIB(SCBSTKCD),DISP=SHR
// DD DSN=PPGB.PARMLIB(SCBSTPUT),DISP=SHR
// DD DSN=&HLQ.GB.PARMLIB(DIR#QUIT),DISP=SHR
//*
//PARMOUT DD DSN=&&PARM,
// DISP=(NEW,PASS),
// SPACE=(TRK,(1,1),RLSE),UNIT=SYSWK,
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=0,DSORG=PS)
//*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//*
//**********************************************************************
//* FTP THE FILE TO THE SERVER
//**********************************************************************
//FTPFL001 EXEC PGM=FTP,REGION=8M,PARM='(EXIT TRACE'
//*
//FTPDD DD DSN=&HLQIN..&FILEIN..DATAW&PR.&FN..B&BATCH..ZIP,DISP=SHR
//*
//INPUT DD DSN=&&PARM,DISP=(OLD,DELETE)
//*
//OUTPUT DD SYSOUT=(Q,B&SAR.M)
//*
//SYSFTPD DD DSN=SYS1.TCPPARMS(FTPDATAN),DISP=SHR
//*
//SYSOUT DD SYSOUT=*
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Jun 09, 2005 11:45 am    Post subject: Reply with quote

Your put statement would be:
Code:

put //DD:FTPDD b&BATCH..&PER._&N..ZIP
...
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