Re: symbolic date parameter (EZACFSM1)

2010-09-21 Thread Walter Marguccio
Have you considered the system symbol interpreter called EZACFSM1? I checked to make sure it was available in Comm Server 1.7. This is what your sample job will turn into: I've followed the old, frequent thread about variables in JCL for ages, and it never occurred to me that this program

Re: symbolic date parameter (EZACFSM1)

2010-09-21 Thread Peter Nuttall
@bama.ua.edu 21/09/2010 10:31 AM Please respond to IBM Mainframe Discussion List IBM-MAIN@bama.ua.edu To IBM-MAIN@bama.ua.edu cc Subject Re: symbolic date parameter (EZACFSM1) Have you considered the system symbol interpreter called EZACFSM1? I checked to make sure it was available

Re: symbolic date parameter

2010-09-17 Thread Staller, Allan
A shell script will also work just fine to extract the system date in just about any format practical. See the MAN pages for the UNIX DATE command. HTH, snip I came up against this and now build the whole ftp job using a batch initiated REXX program. /snip

Re: symbolic date parameter

2010-09-17 Thread Robert Birdsall
At the risk of going overboard, here is JCL that will do this with Rexx. The only advantage of this over PGM=EZACFSM1 (which is simpler) is that you can do date manipulation (e.g. yesterday or next month). The comments are, of course, optional. //FTPTEST JOB

EZACFSM1 (was: symbolic date parameter)

2010-09-17 Thread Paul Gilmartin
On Fri, 17 Sep 2010 08:29:01 -0500, Robert Birdsall wrote: At the risk of going overboard, [...] JCL [...] will do this with Rexx. The only advantage of this over PGM=EZACFSM1 (which is simpler) is that you can do date manipulation (e.g. yesterday or next month). And I wonder about the support

Re: symbolic date parameter

2010-09-17 Thread Shmuel Metz (Seymour J.)
In aanlktiks+kkf+n4kfqzcgrja1vaccpbjxmp2-h02=...@mail.gmail.com, on 09/16/2010 at 05:32 PM, Roberto Halais roberto.hal...@gmail.com said: Why don't you use a REXX script that will generate your JCL and parms and submit the job. Why submit a separate job? Do the FTP in the script. --

Re: symbolic date parameter

2010-09-16 Thread Ted MacNEIL
You'll have to migrate to VSE to get this feature. Or have a front end to parse the data before submission. - I'm a SuperHero with neither powers, nor motivation! Kimota! -- For IBM-MAIN subscribe / signoff / archive access

Re: symbolic date parameter

2010-09-16 Thread Frank Swarbrick
You'll have to migrate to VSE to get this feature. :-) On 9/16/2010 at 2:47 PM, in message d075e858419f4f45ab32ccfc321a616202b3edfad...@fbnex.furniturebrands.com, Harris, Randy rhar...@furniturebrands.com wrote: Trying to do an ftp from mainframe (z/OS v1.7) to a network server. I would like

symbolic date parameter

2010-09-16 Thread Harris, Randy
Trying to do an ftp from mainframe (z/OS v1.7) to a network server. I would like to be able append the system date to the dataset in the put statement. Is there a symbolic parameter for date that will allow me to do this? //FTPTEST JOB (JOB,JOB),'RHARRIS',CLASS=Z,MSGCLASS=M //STEP01 EXEC

Re: symbolic date parameter

2010-09-16 Thread Mike Schwab
I wrote a small program that took the parm (after the system substituted the variables) and wrote it as a F 80 80 file w 1 record. Ran it once for each card then used all the files for the input file. On Thu, Sep 16, 2010 at 4:19 PM, Frank Swarbrick frank.swarbr...@efirstbank.com wrote: You'll

Re: symbolic date parameter

2010-09-16 Thread Paul Gilmartin
On Thu, 16 Sep 2010 15:47:59 -0500, Harris, Randy wrote: Trying to do an ftp from mainframe (z/OS v1.7) to a network server. I would like to be able append the system date to the dataset in the put statement. Is there a symbolic parameter for date that will allow me to do this? I believe that

Re: symbolic date parameter

2010-09-16 Thread Roberto Halais
Why don't you use a REXX script that will generate your JCL and parms and submit the job. That way you will get the date from REXX functions. On Thu, Sep 16, 2010 at 5:26 PM, Ted MacNEIL eamacn...@yahoo.ca wrote: You'll have to migrate to VSE to get this feature. Or have a front end to parse

Re: symbolic date parameter

2010-09-16 Thread Paul Gilmartin
On Thu, 16 Sep 2010 16:43:42 -0500, Mike Schwab wrote: I wrote a small program that took the parm (after the system substituted the variables) and wrote it as a F 80 80 file w 1 record. Ran it once for each card then used all the files for the input file. But you had to type the date by hand

Re: symbolic date parameter

2010-09-16 Thread Wayne Bickerdike
I came up against this and now build the whole ftp job using a batch initiated REXX program. We ftp backup files to a remote server and I needed a generation of 3 weeks worth of files. Our ftp datasets now look like this: PACK#10.D10210.T10801 etc... I use another REXX program to build a

Re: symbolic date parameter

2010-09-16 Thread John McKown
On Thu, 2010-09-16 at 16:35 -0500, Paul Gilmartin wrote: On Thu, 16 Sep 2010 15:47:59 -0500, Harris, Randy wrote: Trying to do an ftp from mainframe (z/OS v1.7) to a network server. I would like to be able append the system date to the dataset in the put statement. Is there a symbolic

Re: symbolic date parameter

2010-09-16 Thread Paul Gilmartin
On Thu, 16 Sep 2010 18:12:56 -0500, John McKown wrote: I believe that in the newest z/OS release (1.12?) FTP will be able to take its input from a named pipe (FIFO). With this, you could achieve your result by concatenating the output of date(1) and your data set into such a pipe. I think

Re: symbolic date parameter

2010-09-16 Thread Roland Fernandez
Randy, Have you considered the system symbol interpreter called EZACFSM1? I checked to make sure it was available in Comm Server 1.7. This is what your sample job will turn into: //FTPTEST JOB (JOB,JOB),'RHARRIS',CLASS=Z,MSGCLASS=M //STEP01 EXEC PGM=EZACFSM1 //SYSOUT DD

Re: symbolic date parameter

2010-09-16 Thread Paul Gilmartin
On Thu, 16 Sep 2010 18:32:41 -0500, Roland Fernandez wrote: Have you considered the system symbol interpreter called EZACFSM1? I checked to make sure it was available in Comm Server 1.7. Thanks! I didn't know about this. I still know very little; the only meager documentation I can find is a

Re: symbolic date parameter

2010-09-16 Thread Kirk Wolf
John, I like it!, but in your example I think you meant to use PGM=COZBATCH, and not PROC=COZPROC Also (a nit), but you have a typo (two different names for the shell variable). This is a good example of how inline use of the z/OS Unix shell can be used as an effective scripting language in the