Page 1 of 1

FTP using High level qualifier

PostPosted: Mon Mar 13, 2017 7:41 pm
by Papya013
Hi Team,

I have the file mentioned below in the FTP location.

KCQ_20170309122124_OP.txt
KCQ_20170309122124_OP.txt
KCQ_20170309122124_OP.txt
KCQ_20170309122124_OP.txt

I would need to copy all the files into a GDG generation. I tried using the below mentioned JCL.

//S010     EXEC PGM=FTP,PARM='(EXIT TRANSLATE ISO'    
//SYSPRINT DD  SYSOUT=*                                
//OUTPUT   DD  SYSOUT=*                                
//INPUT    DD  *                                      
11.11.11.12                                            
user                                                
password                                              
CD ABC/TEST                            
ascii                                                  
LOCSITE REC=FB LR=80                                  
GET '*.txt' 'ABC.XYZ.PQR(+1)' (REPLACE                
quit                                                  
/*          


The job failed with error code as mentioned below.

550 The filename, directory name, or volume label syntax is incorrect.
EZA1735I Std Return Code = 16550, Error Code = 00002                  


Could you please suggest me how I can achieve this?

Regards,
Balesh GG

Re: FTP using High level qualifier

PostPosted: Mon Mar 13, 2017 8:59 pm
by Robert Sample
From the IP User's Guide and Commands manual (SC27-3662-00 for version 2.1):
GDG examples


Before you specify a (+nnn) value to create a new GDS, issue the following command: SITE DCBDSN=model


This subcommand specifies an MVS™ data set to be used as a model. The model must have a DSORG of PS. The other DCB characteristics of the data set are not checked.
Notes: 1.Failure to have a valid DCBDSN before trying to create a new GDS might cause FTP or ALLOCATION to fail or to return unpredictable results.
2.If you issue a SITE DCbdsn LRecl BLKsize command before the creation of a new data set, the LRecl and BLKsize parameters on the SITE command override the LRecl and BLKsize parameters on the DCbdsn command.


Re: FTP using High level qualifier

PostPosted: Mon Mar 13, 2017 9:16 pm
by Papya013
Hi Robert,

I tried using the suggested DCBDSN parm in the sysin but still the same issue.

can you please correct me if anything has to be added to fix the issue?

Regards,
Balesh

Re: FTP using High level qualifier

PostPosted: Mon Mar 13, 2017 9:54 pm
by Robert Sample
I recommend closely reading https://www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.halu001/dd_name_support.htm#dd_name_support and adapting the examples to your system. Also, rather than just telling us what we recommend didn't work, why not try several things yourself? If you did the research yourself, you would probably have found the //DD:ddname construct in the manual already and have been using it.