From: "Steven Levine" Received: from [192.168.100.201] (HELO mail.2rosenthals.com) by 2rosenthals.com (CommuniGate Pro SMTP 5.4.10) with ESMTP id 14423404 for ecs-isp@2rosenthals.com; Tue, 14 Oct 2025 15:30:33 -0400 Received: from secmgr-va.randr ([192.168.200.201]:60026 helo=mail2.2rosenthals.com) by mail.2rosenthals.com with esmtp (Exim 4.98.2) (envelope-from ) id 1v8kiy-000000004F2-1AdU for ecs-isp@2rosenthals.com; Tue, 14 Oct 2025 15:30:20 -0400 Received: from mta-102b.earthlink-vadesecure.net ([51.81.61.67]:38881 helo=mta-102a.earthlink-vadesecure.net) by mail2.2rosenthals.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1v8kiv-000000002jK-16U3 for ecs-isp@2rosenthals.com; Tue, 14 Oct 2025 15:30:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; bh=gjiN2GXVhA9tGYD4jdxOHa3OoY1yPkLUJcnWu0 M9hak=; c=relaxed/relaxed; d=earthlink.net; h=from:reply-to:subject: date:to:cc:resent-date:resent-from:resent-to:resent-cc:in-reply-to: references:list-id:list-help:list-unsubscribe:list-unsubscribe-post: list-subscribe:list-post:list-owner:list-archive; q=dns/txt; s=dk12062016; t=1760470216; x=1761075016; b=caFpKoXZjQeFmTxa5zXnW/gBJe1 /tTXqtm+QFebxpl8ODxCemRb3E/8T7QkZXDH6avy7M2QFd87Ol9XnXI9yLlXk9JSLBxq/Jz QiSUCSalLIPsFXkQonLCN5g6vaCAPHnj9LIh6J4cwQqw49pawbDzi8fpTyvMMlTXSKNmNkj myoo/37d1qDmnMzanNwZLYMjqhoEFdg1OEh8oKUFxd2VsdklLS0HRGrDnLXeNrDXWjvziws cnjjBriKPxoHTMP5dCOW263a2q5x8Y9LjRihK2/M3lZbJeMIEIKKtqHB9lMbAr5CSx0toem uhMCztlTHEGh8T/TwndbRWHmmBeDDew== Received: from slamain ([107.202.224.188]) by vsel1nmtao02p.internal.vadesecure.com with ngmta id 1268d616-186e72559b3d3eab; Tue, 14 Oct 2025 19:30:16 +0000 Message-ID: <68eead97.19.mr2ice.fgrirsq@earthlink.net> Date: Tue, 14 Oct 2025 12:07:51 -0800 To: "eCS ISP Mailing List" In-Reply-To: Subject: Re: [eCS-ISP] script to rotate logs, old mails etc. and create a dated zip X-Mailer: MR/2 Internet Cruiser Edition for OS/2 v3.00.11.24/60 In , on 10/14/25 at 09:15 AM, "Massimo S." said: Hi, >I need to move to a zip archive (with the current date in the filename), >all the .MSG files older than a certain date (eg. 365 days). OK. Peter did a better job of understanding your request than I did. >I'm not able to write it myself. Sure you can. The others have provided useful suggestions. The help yourself with the coding and debugging, you need to use the available tools. The REXX say and trace statements are your friends. There's also rxd which is a gui debugger for REXX. My scripts also turn on all the available error checking signals. I am a firm believer in letting my tools do as much of the debugging as they are capable of. >And all the stuff produced by Copilot is in a rexx that do not work >properly, maybe it's regina rexx, but it's not compatible with our one. Did you tell Copolit that you wanted a "IBM Classic REXX" script? If you only asked for a REXX script, there's no way for Copilot to know what you really need. I doubt Copilot yet can read your mind. REXX, especally Classic REXX, is not all to good with handling date ranges. If would probably use 4OS2. Since you run cmd.exe, something lile 4os2 /c dir /b /a:-d /[d-365,1-1-80] *.msg >oldfiles.nf zip -uo9 -m -@ oldfiles.zip Warp/DIY/BlueLion etc. www.scoug.com www.arcanoae.com www.warpcave.com ----------------------------------------------------------------------