Search found 19 matches
- 01 May 2014 11:40
- Forum: DOS Batch Forum
- Topic: Batch script to read a .in/.EDI file & rename it *New*
- Replies: 40
- Views: 20462
Re: Batch script to read a .in/.EDI file & rename it *New*
Thank you - I will try it.
- 30 Apr 2014 06:40
- Forum: DOS Batch Forum
- Topic: Batch script to read a .in/.EDI file & rename it *New*
- Replies: 40
- Views: 20462
Re: Batch script to read a .in/.EDI file & rename it *New*
Good Morning FoxDrive. It does not work GE: ISA>00> >00> >01>176893394GEIS >01>048617914 >140428>1701>U>00401>000002704>0>P>~ - Hex "0a" GR: ISA*00* *00* *ZZ*005103494 *01*048617914 *140428*1339*U*00401*000012813*0*P*<~ - Hex "7e' RA: ISA!00! !00! !01!204197800 !01!048617914 !140422!1...
- 29 Apr 2014 12:07
- Forum: DOS Batch Forum
- Topic: Batch script to read a .in/.EDI file & rename it *New*
- Replies: 40
- Views: 20462
Re: Batch script to read a .in/.EDI file & rename it *New*
Good Afternoon guys. I added the logic to the original script to included the rest of the files that I need to process. Some of them worked OK but 4 in blue did not. I know that it has to do with the line delimiter again but I do not know how to modify the script to include the proper logic. Can you...
- 28 Apr 2014 13:54
- Forum: DOS Batch Forum
- Topic: Batch script to read a .in/.EDI file & rename it *New*
- Replies: 40
- Views: 20462
Re: Batch script to read a .in/.EDI file & rename it *New*
IT WORKED!!!
YOU GUYS are the BEST!!!
THANK YOU SO MUCH!
I wish I could understand all of this logic, but I will play around with it
Thanks you AGAIN
YOU GUYS are the BEST!!!
THANK YOU SO MUCH!
I wish I could understand all of this logic, but I will play around with it

Thanks you AGAIN
- 28 Apr 2014 12:44
- Forum: DOS Batch Forum
- Topic: Batch script to read a .in/.EDI file & rename it *New*
- Replies: 40
- Views: 20462
- 28 Apr 2014 12:32
- Forum: DOS Batch Forum
- Topic: Batch script to read a .in/.EDI file & rename it *New*
- Replies: 40
- Views: 20462
Re: Batch script to read a .in/.EDI file & rename it *New*
I loaded more HD files, but they look like they all have "0A"
What tool are you looking to browse?
I use Notepad ++ and EDI notepad.
Thanks
https://drive.google.com/folderview?id= ... sp=sharing
What tool are you looking to browse?
I use Notepad ++ and EDI notepad.
Thanks
https://drive.google.com/folderview?id= ... sp=sharing
- 28 Apr 2014 11:36
- Forum: DOS Batch Forum
- Topic: Batch script to read a .in/.EDI file & rename it *New*
- Replies: 40
- Views: 20462
Re: Batch script to read a .in/.EDI file & rename it *New*
There is no field that stores delimeters. 1st line in every file will ALWAYS start with segment ISA. Delimeter will be always after last * P * from the right. Can we just fetch the last value? or the 3rd value after last "P"? "P" means production. Thanks. LW: ISA*00* *00* *01*006...
- 28 Apr 2014 10:44
- Forum: DOS Batch Forum
- Topic: Batch script to read a .in/.EDI file & rename it *New*
- Replies: 40
- Views: 20462
Re: Batch script to read a .in/.EDI file & rename it *New*
Thank you PenPen.
I will try it.
I have no control how the files are formatted. This is the way I get them from the Clients.
I have no control of it.
Thanks
Gary
I will try it.
I have no control how the files are formatted. This is the way I get them from the Clients.
I have no control of it.
Thanks
Gary
- 28 Apr 2014 07:14
- Forum: DOS Batch Forum
- Topic: Batch script to read a .in/.EDI file & rename it *New*
- Replies: 40
- Views: 20462
Re: Batch script to read a .in/.EDI file & rename it *New*
Good Morning.
your last code still does not work
all it does
==============
["FM_850_PO_123456789012_140421204950.in"]
- - - - -
and sits on the screen.
Any Idea?
Thank you again for your help.
Gary
your last code still does not work
all it does
==============
["FM_850_PO_123456789012_140421204950.in"]
- - - - -
and sits on the screen.
Any Idea?
Thank you again for your help.
Gary
- 25 Apr 2014 16:12
- Forum: DOS Batch Forum
- Topic: Batch script to read a .in/.EDI file & rename it *New*
- Replies: 40
- Views: 20462
Re: Batch script to read a .in/.EDI file & rename it *New*
PenPen
Sorry for my ignorance, but this is all new to me I am an IBM midrange programmer.
I am running it of Windows 8 Pro.
What do you mean debug version.
I just saved the logic that you provided in .bat file and ran it.
Thanks
Gary
Sorry for my ignorance, but this is all new to me I am an IBM midrange programmer.
I am running it of Windows 8 Pro.
What do you mean debug version.
I just saved the logic that you provided in .bat file and ran it.
Thanks
Gary
- 25 Apr 2014 16:01
- Forum: DOS Batch Forum
- Topic: Batch script to read a .in/.EDI file & rename it *New*
- Replies: 40
- Views: 20462
Re: Batch script to read a .in/.EDI file & rename it *New*
Thanks - Have a good night and good weekend.
It still did not work.
Would it be a help to you if will have files?
here is the link to the files and print shots
https://drive.google.com/folderview?id= ... sp=sharing
Thanks
Have a good weekend
Gary
It still did not work.
Would it be a help to you if will have files?
here is the link to the files and print shots
https://drive.google.com/folderview?id= ... sp=sharing
Thanks
Have a good weekend
Gary
- 25 Apr 2014 15:48
- Forum: DOS Batch Forum
- Topic: Batch script to read a .in/.EDI file & rename it *New*
- Replies: 40
- Views: 20462
Re: Batch script to read a .in/.EDI file & rename it *New*
I does not work
All it did
=============
["FM_850_PO_123456789012_140421204950.in"]
- - - - -
Thanks
All it did
=============
["FM_850_PO_123456789012_140421204950.in"]
- - - - -
Thanks
- 25 Apr 2014 15:21
- Forum: DOS Batch Forum
- Topic: Batch script to read a .in/.EDI file & rename it *New*
- Replies: 40
- Views: 20462
Re: Batch script to read a .in/.EDI file & rename it *New*
Here is what I got
https://drive.google.com/file/d/0B4r5jS ... sp=sharing
It read only one file "HD" it says that it re-name it, but it did not do anything to the files.
https://drive.google.com/file/d/0B4r5jS ... sp=sharing
Can we add a Go to End if BEG found?
If BEG03 found - Goto End, rename and read next one
Thanks
https://drive.google.com/file/d/0B4r5jS ... sp=sharing
It read only one file "HD" it says that it re-name it, but it did not do anything to the files.
https://drive.google.com/file/d/0B4r5jS ... sp=sharing
Can we add a Go to End if BEG found?
If BEG03 found - Goto End, rename and read next one
Thanks
- 25 Apr 2014 14:17
- Forum: DOS Batch Forum
- Topic: Batch script to read a .in/.EDI file & rename it *New*
- Replies: 40
- Views: 20462
Re: Batch script to read a .in/.EDI file & rename it *New*
Thank you penpen YES. I forgot to mention that files might have multiple lines of BEG. But I will only need to pull the first one for now. your code opened Dos and show this: Nothing else is done ============= ["FM_850_PO_123456789012_140421204950.in"] - - - - - Please Advise Thank you Gary
- 25 Apr 2014 11:30
- Forum: DOS Batch Forum
- Topic: Batch script to read a .in/.EDI file & rename it *New*
- Replies: 40
- Views: 20462
Re: Batch script to read a .in/.EDI file & rename it *New*
Hi I modified the code to include more folders. But the Code does not work. When I run it - it gives me a blank DOS screen. See print shot: m Any Idea? Thank you in Advance. for %%a in (*.in *.edi) do ( for /f "tokens=1-5 delims=_" %%b in ("%%a") do ( for /f "tokens=4 delims...