Search found 544 matches

by SIMMS7400
13 Sep 2021 07:58
Forum: DOS Batch Forum
Topic: Question with Array setup
Replies: 12
Views: 8370

Re: Question with Array setup

Squash -

Absolutely I can. But there will be situationnwhere I won't have the delimiter to use and will be stuck with this situation that I'm hopping to solve with some additional logic
by SIMMS7400
13 Sep 2021 06:44
Forum: DOS Batch Forum
Topic: Question with Array setup
Replies: 12
Views: 8370

Re: Question with Array setup

Thanks, T, but that didn't work.

Lets say I have FDRBS_20210912.csv. it's still returning the array definition for the FDR line, not the FDRBS definition.
by SIMMS7400
13 Sep 2021 03:24
Forum: DOS Batch Forum
Topic: Question with Array setup
Replies: 12
Views: 8370

Re: Question with Array setup

Thanks, T! Where would I add that character? To the array itself when it initializes?
by SIMMS7400
12 Sep 2021 16:02
Forum: DOS Batch Forum
Topic: Question with Array setup
Replies: 12
Views: 8370

Question with Array setup

Hi Folks - I have a unique situation that I'm wondering how to solve. I have an array and i'm initializing as follows: FOR %%a IN ( "FDR|DLR_DATA_FDRII,DLR_DATA_FDRII|inbox/LOC_DATA_FDRII|REPLACE|STORE_DATA" "FDRBS|DLR_DATA_FDRII,DLR_DATA_FDRII|inbox/LOC_DATA_FDRII|REPLACE|STORE_DATA" "FDRCS|DLR_DAT...
by SIMMS7400
12 Sep 2021 14:44
Forum: DOS Batch Forum
Topic: Scratching my head with this Function behavoir....
Replies: 3
Views: 3982

Re: Scratching my head with this Function behavoir....

Gotchya, Shadow. Makes sense. I'll update my script and retry.

Thank you for the feedback!
by SIMMS7400
11 Sep 2021 08:04
Forum: DOS Batch Forum
Topic: Scratching my head with this Function behavoir....
Replies: 3
Views: 3982

Scratching my head with this Function behavoir....

HI Folks - I have the following logic: ::-- Run Pre Rule(s) based on criteria --:: SET "RUN_OBJECT=" IF /I "[%POV_CNT%]"=="[0]" ( SET "RUN_OBJECT=" FOR %%A IN (%DM_D_POV_LIST:,= %) DO IF DEFINED %%~A IF /I "[%CNT%]"=="[1]" SET "RUN_OBJECT=T" IF /I "[%%~A]"=="[DM_D_FN_POV]" SET "RUN_OBJECT=T" FOR %%A...
by SIMMS7400
31 Aug 2021 07:34
Forum: DOS Batch Forum
Topic: How to reset a batch variable in Powershell?
Replies: 3
Views: 3341

How to reset a batch variable in Powershell?

Hi Team - I have a process where I set a variable in batch but then want to reset back to another value from a PowerShell process that I'm executing but can't seem to get it to work. Here is my logic: SET "PRE_NOTIFY=T" & CALL :EMAIL Which calls this: :EMAIL ::-- Set Distribution List --:: IF NOT DE...
by SIMMS7400
14 Apr 2021 07:04
Forum: DOS Batch Forum
Topic: Safely parse nearly any CSV with pure batch
Replies: 2
Views: 6543

Re: Safely parse nearly any CSV with pure batch

HI Dave -

This works great for me situation, many thanks!!!

Now I understand beggars can't be choosers, but this is running "slow" when cycling through a big file. Is this expected behavior? And by slow I mean about ~1 minute for a 3k row file.

Other than, absolutely fantastic!!
by SIMMS7400
08 Apr 2021 02:16
Forum: DOS Batch Forum
Topic: JREPL to extract unique values from 16million row file?
Replies: 6
Views: 4709

Re: JREPL to extract unique values from 16million row file?

Antonio -

That worked wonderfully!! 16+ millions rows very quickly. Thank you again for this, much appreciated!!
by SIMMS7400
04 Apr 2021 10:19
Forum: DOS Batch Forum
Topic: JREPL to extract unique values from 16million row file?
Replies: 6
Views: 4709

Re: JREPL to extract unique values from 16million row file?

Hi Aacini !

Thank you ! Basically I need to pull all the unique values in column 8. Is that possible?
by SIMMS7400
03 Apr 2021 06:44
Forum: DOS Batch Forum
Topic: JREPL to extract unique values from 16million row file?
Replies: 6
Views: 4709

JREPL to extract unique values from 16million row file?

HI Dave/Team - I have a text file that is 16 million rows and I need to extract the unique values from the 8th position of the file. "Property Gross Royalties" "Commercial" "Actual" "Final" "FY14" "Jan" "Periodic" "O-20003921" "FDR" "PA" 120 "Sides" "Commercial" "Actual" "Final" "FY14" "Jan" "Period...
by SIMMS7400
22 Mar 2021 19:22
Forum: DOS Batch Forum
Topic: Using multiple strings for FINDSTR - is this OK?
Replies: 3
Views: 8148

Re: Using multiple strings for FINDSTR - is this OK?

Dave -

As usual, you are the man! Thank you so much for your help here! This has actually cascading into my updating a few of my other scripts as well based on the concept here.

Thank you again!!
by SIMMS7400
17 Mar 2021 04:08
Forum: DOS Batch Forum
Topic: Using multiple strings for FINDSTR - is this OK?
Replies: 3
Views: 8148

Re: Using multiple strings for FINDSTR - is this OK?

In searching some old threads from Fox and others, this seems to be the preffered approach: @ECHO OFF ::-- If one or more Data Management CRITICAL Errors detected, build kickout file --:: FINDSTR /I /C:"ORA-"^ /C:"Fetch of Driver Member"^ /C:"Error: 3303"^ /C:"Error: 3304"^ /C:"Error: 3335"^ /C:"Err...
by SIMMS7400
17 Mar 2021 03:15
Forum: DOS Batch Forum
Topic: Using multiple strings for FINDSTR - is this OK?
Replies: 3
Views: 8148

Using multiple strings for FINDSTR - is this OK?

Hi Folks - I have the following logic that I need to check multiple strings. If 1 or more are found from my first check, then need to include other and spool all content to a file. The logic is working but wondering if there is a better way? Also, I'd like to use ORA- as one of my strings but the "-...
by SIMMS7400
16 Mar 2021 18:40
Forum: DOS Batch Forum
Topic: Issue declaring an array and then using it's value
Replies: 8
Views: 5957

Re: Issue declaring an array and then using it's value

HI Compo -

I understand now. Yes, you are right I don't need to be as detailed as it was, unnecessary. I have used your suggestion and have been testing the last few days and everything is working as expected!! Thank you again!!