× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi, use rmvlnk instead of dltobj.


Best regards,

Stefan Tageson
TietoEVRY
mobile +46 732 369934


Sensitivity: Internal

-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Michael Lange
Sent: den 2 april 2020 21:47
To: midrange-l@xxxxxxxxxxxxxxxxxx
Subject: Deleting CSV from folder

V7.2


So I have this bit of code where we archive inbound CSV files before processing them.
The problem arises when somehow the same file gets pulled in and the archive fails because we already have it the second archive folder.


So I'm putting the MONMSG in and want to delete the CSV from the input folder but DLTOBJ doesn't like my OBJ.


How do I go about deleting the file?
There will only ever be one file in the folder.



/* Move previous files to Archive                             */
           MOV        OBJ('/home/linetec/input/*.csv') +
                        TODIR('/home/linetec/archive')
           Monmsg     MsgID(CPFA093)
           MONMSG     MSGID(CPFA0B8) EXEC(DO)
           MOV        OBJ('/home/linetec/input/*.csv') +
                        TODIR('/home/linetec/archive/dup')
        /* CPFA08E - More than one name matches pattern.   */
           MONMSG     MSGID(CPFA08E) EXEC(DO)
            dltobj     obj('/home/linetec/input/*.CSV')
           ENDDO
           ENDDO                                                


Regards
Michael
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Fmidrange-l&amp;data=02%7C01%7CStefan.Tageson%40evry.com%7C97fc592abd99450cc53708d7d74115aa%7C40cc2915e2834a2794716bdd7ca4c6e1%7C1%7C1%7C637214546851255648&amp;sdata=Hga72XEQniJPuRgkk5Wob0FkRleqau%2BEPH%2FqwLf8rxk%3D&amp;reserved=0
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Fmidrange-l&amp;data=02%7C01%7CStefan.Tageson%40evry.com%7C97fc592abd99450cc53708d7d74115aa%7C40cc2915e2834a2794716bdd7ca4c6e1%7C1%7C1%7C637214546851255648&amp;sdata=txeB722arUnF3Y74tERPd%2FZXl%2FU9fyba0FX%2BKTOhTiM%3D&amp;reserved=0.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Famazon.midrange.com%2F&amp;data=02%7C01%7CStefan.Tageson%40evry.com%7C97fc592abd99450cc53708d7d74115aa%7C40cc2915e2834a2794716bdd7ca4c6e1%7C1%7C1%7C637214546851265644&amp;sdata=ZqIoQGCCFRSnr8lK3gKitkYGNLuZxInMY26McVY0Dzk%3D&amp;reserved=0

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.