Perfect for me

 

I ended up with:

 

dt = '2010-07-22 09:25:34'                                          

 'PIPE COMMAND LISTFILE * * A (ISO NOH' ,                           

    '|PICK 57.19 >>= /'dt'/',   /* Sometime format: hh:mm:ss */     

    '| SPEC /&1 &2/ 1 W1.3 NW /&3 &4 &5 &6 &7 &8 &9/ NW' ,          

    '| > CMS EXEC A'        

 

 

I noticed that the ISO NOH spits the hh  without leading zero    looks
like my code will still do the job

 

Any comments are appreciated. 

 

 

Thanks !!!                                     

 

 

 

________________________________

From: The IBM z/VM Operating System [mailto:[email protected]] On
Behalf Of Kris Buelens
Sent: Thursday, July 22, 2010 9:59 AM
To: [email protected]
Subject: Re: Pipe to create CMS EXEC file by date

 

You can start with "LISTFILE (AFTER date" and then fine tune with a PIPE
PICK.
  'PIPE COMMAND LISTFILE ... (AFTER' somedate '(ISO NOH',
    '|PICK 68.8 >>= /'sometime'/',   /* Sometime format: hh:mm:ss */
    '|SPEC /&1 &2/ 1 W1.3 NW',
    '|LITERAL &TRACE',
    '|> CMS EXEC A'
But, why store the result in a CMS EXEC?  Let your PIPE or main exec
handle it all.

Beware too when LISTFILE doesn't find a file after the given date, it
will produce an errormessage, and -as opposed to other error messages-
that will be fed into the pipe, even though we start LISTFILE with the
COMMAND stage.
DMSLST765E No files matched specified date range 
To get rid of that message, an esay bypass is to let LISTFILE produce
its header (or the error message) and drop it.  So:
  'PIPE COMMAND LISTFILE ... (AFTER' somedate '(ISO HEAD',
    '|DROP',                        /* drop Header or no files msg*/
    '|PICK 68.8 >>= /'sometime'/',  /* Sometime format: hh:mm:ss */

2010/7/22 Gonen Shoham <[email protected]>

YES - into a CMS EXEC file 

 

 

but...  I am sorry I forgot to mention that hh:mm:ss is also part of the
input so I cannot use the AFTER  parameter I guess

 

 

Thanks !!!!!

 

________________________________

From: The IBM z/VM Operating System [mailto:[email protected]] On
Behalf Of Kris Buelens
Sent: Thursday, July 22, 2010 9:38 AM
To: [email protected]
Subject: Re: Pipe to create CMS EXEC file by date

 

I must say I don't understand your question.  Are you looking for
something like
  'PIPE COMMAND LISTFILE * * A(AFTER 2010-04-22 | ....

2010/7/22 Gonen Shoham <[email protected]>

Hello

Can someone send piece of PIPE code to run and create CMS EXEC file with
minidisk files created after a given date ?

Many thanks



-- 
Kris Buelens,
IBM Belgium, VM customer support

DISCLAIMER:
This e-mail and any attachments may be confidential or legally
privileged, and is only transmitted for the intended recipient. If you
received this message in error or are not the intended recipient, you
should destroy the e-mail message and any attachments or copies, and you
are prohibited from retaining, distributing, disclosing, retransmitting,
converting to hard copy, reproducing, or using in any other way any
information contained herein. Please inform us at Sapiens of the
erroneous delivery by return e-mail and delete the material from any
computer, disk drive, diskette, or other storage device or media.




-- 
Kris Buelens,
IBM Belgium, VM customer support 


DISCLAIMER:
This e-mail and any attachments may be confidential or legally privileged, and 
is only transmitted for the intended recipient. If you received this message in 
error or are not the intended recipient, you should destroy the e-mail message 
and any attachments or copies, and you are prohibited from retaining, 
distributing, disclosing, retransmitting, converting to hard copy, reproducing, 
or using in any other way any information contained herein. Please inform us at 
Sapiens of the erroneous delivery by return e-mail and delete the material from 
any computer, disk drive, diskette, or other storage device or media.

Reply via email to