Sometimes providing a pattern to any of the Batch Adapter in JCAPS can be a pain and involves a lot of Googling for an regex which actually would work for us. It may look simple intially but writing a wrong file regex pattern can cause dangling exception at runtime.
In case you are looking for file pattern which has to read any file with a particular extension like .cntl, you can use :
.*\.cntl
or may you need to read any file from a particular directory do use:
.*\.*$
The above file patterns have worked for JCAPS 5.1.X and JCAPS 6.
Incase you are looking for a specific pattern as per your requirement do write to me at manesh@jcapsmentor.com
Also, following are some sites which can help you to check the regex which you have thought about to implement in the Batch Adapter as patterns:
http://www.myregextester.com/
http://www.fileformat.info/tool/regex.htm
Regards,
MakLabels: advantages jcaps 6, File Pattern, Inbound File Name Pattern, JCAPS regular expressions, patterns |