The statement you provided as a sample *//PUT 'default_file_name' date_time.txt*
Would not be a valid JCL statement. If this is inside your INPUT DD * statement in an FTP Jobstream, that maybe different. Perhaps if you provided the full JCL and control cards for what you are using now, it will help If you are trying to do this within the //INPUT DD statement in FTP, then you may have to find another way. The following is a sample of FTP JCL and control cards Code: //STEP1 EXEC PGM=FTP,REGION=8M, // PARM='ftp site you are going to' <== Destination //STEPLIB DD DSN=As your shop //SYSTCPD DD DSN=As your shop //SYSFTPD DD DSN=As your shop //SYSPRINT DD SYSOUT=* //OUTPUT DD SYSOUT=* //SYSUDUMP DD SYSOUT=* //INPUT DD * Userid password ascii cd <path where you need to put the file> PUT '<host file name>' <destination file name> QUIT Or you might be using //STEP1 EXEC PGM=FTP,REGION=8M, // PARM='ftp site you are going to' <== Destination //STEPLIB DD DSN=As your shop //SYSTCPD DD DSN=As your shop //SYSFTPD DD DSN=As your shop //SYSPRINT DD SYSOUT=* //OUTPUT DD SYSOUT=* //SYSUT1 DD DISP=SHR,DSN=MY.OUTBOUND.DATA //SYSUT2 DD DSN=MY.INBOUND.DATA,DISP=(,CATLG,DELETE),... //INPUT DD * Userid password ascii get filename //DD:SYSUT2 put //DD:SYSUT1 filename QUIT Please show what you are trying to do Lizette > -----Original Message----- > From: IBM Mainframe Discussion List [mailto:[email protected]] On > Behalf Of Rajesh Janakiraman > Sent: Saturday, July 26, 2014 12:03 PM > To: [email protected] > Subject: Re: to use wildcard characters in JCl > > Hi Elardus, > > There is a dataset which get updated every hour in our production system, > actually i > need to ftp that particular dataset every one hour. > > For now i'm submitting the job manually by changing the date and time for > every > one hour. > > I'm not clearly aware of wildcard datasets that can be given as a input DSN > in JCL. > > Input dataset name is same, but I need to get output using wildcard in JCL > with > different time on hourly basis. > > for example, in ftp sysin----> *//PUT 'default_file_name' date_time.txt* > > date_time.txt should be like 140727_0900.txt @ 09:00 AM > > > If possible kindly let me know wildcard details for REXX program, this may be > useful for me in future. > > > > On Sat, Jul 26, 2014 at 8:11 PM, Elardus Engelbrecht < > [email protected]> wrote: > > > Rajesh Janakiraman wrote: > > > > >If you have any idea about using wildcard characters in JCL, kindly > > >let > > me know. > > > > What wildcards? Please give examples. Lizette Koehler also asked for > > examples/samples. > > > > >I need to get an extract file for every one hour and I need to add > > >the > > job in OPCA, so that by using wildcard characters for every one hour > > the extract may get genrated automatically. > > > > Just what wildcards for hourly works? Your request is too wide for us > > to interpret. is it Dataset names, input in source DD? etc? > > > > >Please let me kow the detailed explanation i.e. wildcard characters > > >that > > is found in JCL to describe a dataset. > > > > You cannot use wildcards in a JCL for dataset, only symbols which can > > be substituted by SET statements or z/OS symbols. > > > > Only possible wildcards for datasets are in RACF profiles or DFDSS > > statements or such and then only in SYSIN or such DD statements. > > > > You can always use Automation package or write out a > > REXX/Assembler/COBOl/etc program to expand wildcards to fully expanded > > datasets. > > > > Groete / greetings > > Elardus Engelbrecht > > > > ---------------------------------------------------------------------- > > For IBM-MAIN subscribe / signoff / archive access instructions, send > > email to [email protected] with the message: INFO IBM-MAIN > > > > > > -- > Regards, > *Rajesh Janakiraman* > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, send email to > [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
