Below is a copy of a batch file, GetItemNum.bat, I created to loop through files in a PO directory and output certain data in all the LINEITEM and LINDESC fields. Below is a copy of the PO_FILE I am working with. In the LINEITEM field I want the 12 character data that is in the 38[sup]th[/sup] position. In the LINDESC field I want everything that is there. When I execute the batch the output contains the directory path and file name and also the words “ECHO is off.”, plus the output is all wrong. Any help with this script will be greatly appreciated. This is how the output file should look: 000000078861 ORANGES,BLOOD RED 12/3LB 000000072862
Software/Hardware used:
Window 2008, XP
ASKED:
December 8, 2011 8:04 PM
UPDATED:
February 28, 2012 3:23 PM
Can you try to repost the files, or at least the batch file, and a description of the record layout you are searching.
Also try Googling search/grup style programs. I had one that did this and I can’t find it.
If you need – just ask & I’ll try harder.
Rob Vanderwoulde’s website is one of the best online scripting resources I know of. I almost always get the answers I need from his website.
http://www.robvanderwoude.com/
I did include a copy of the batch file and the record layout but somehow all of that information got lost after I submitted the question.
The good and efficient folks at itknowledgeexchange was kind enough to resubmit the question for me under their user ID. So, the question has been resubmitted and now contains all the pertinent information.