Greetings,
I'm using ProComm Plus to automate loading some files into a telnet system. I've got my dates/naming conventions and command transmission all set up, and my script works beautifully. What I encouter though is that on Monday's we have two files, one of which is named for the previous day, and one for two days prior to the current day. I understand how to get the date for the correct day (x * 86,400 where x is the number of days ago.) What I'm unsure of how to do with aspect is check the current day (i.e. Is Today Monday?), and run different procedures based on that, or to simply run a check before processing to say "Does a file with Saturday's date exist, if so run Process A then Process B, if not just run process B". I'm not sure if it would be easier with Aspect to identify the current day, or to identify whether a file exists, and in either case how to do it.
Has anybody encountered this or something similar? Any suggestions on how to go about this?
Many thanks,
Tony Lloyd
I'm using ProComm Plus to automate loading some files into a telnet system. I've got my dates/naming conventions and command transmission all set up, and my script works beautifully. What I encouter though is that on Monday's we have two files, one of which is named for the previous day, and one for two days prior to the current day. I understand how to get the date for the correct day (x * 86,400 where x is the number of days ago.) What I'm unsure of how to do with aspect is check the current day (i.e. Is Today Monday?), and run different procedures based on that, or to simply run a check before processing to say "Does a file with Saturday's date exist, if so run Process A then Process B, if not just run process B". I'm not sure if it would be easier with Aspect to identify the current day, or to identify whether a file exists, and in either case how to do it.
Has anybody encountered this or something similar? Any suggestions on how to go about this?
Many thanks,
Tony Lloyd