Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

writing a batch file to run reports

Posted on 2015-01-26
6
Medium Priority
?
354 Views
Last Modified: 2015-01-26
I am looking to write a batch file to automatically run reports from a point of sale software program.  I know nothing of batch files but here is the batch file (see below) that was currently used (but it runs different reports).   how do I know which Y and N to use?  sorry for my lack of knowledge.  thanks

REM *Unknown Command
C:
cd\sc

REM *Unknown Command

REM *Sales Journal Report
PSNEWW 1 1 NNYNYNNNYNNNNYNN YNNNNNNNN N

REM *Sales Trend Report
SLTRENDW C 2 1
0
Comment
Question by:StewartGilligan
6 Comments
 
LVL 25

Expert Comment

by:NVIT
ID: 40571171
Is what you pasted the batch file that works originally?

Looks like it runs 2 things:
PSNEWW with various parameters
...and
SLTRENDW with various parameters

...how do I know which Y and N to use?
Are these "NNYNYNNNYNNNNYNN YNNNNNNNN N " your guesses or an actual working one?

Are PSNEWW and SLTRENDW also batch files? If so, you can open those files and possibly see what those parameters mean.
0
 

Author Comment

by:StewartGilligan
ID: 40571176
actually working now.  just wrong reports.....
0
 
LVL 25

Expert Comment

by:NVIT
ID: 40571181
Do you mean if you change the NY sequences, it runs or you expect it to run a different report? Have you tried changing it?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 71

Expert Comment

by:Qlemo
ID: 40571204
That is something we cannot really help with, because the reports are proprietary, and the parameters do not have any meaning to us.
0
 
LVL 10

Accepted Solution

by:
Carlos Ijalba earned 2000 total points
ID: 40571245

1.

What you should do is have a look at the program's manual and find out all the parameters, it looks clear to me that what you pass on to the executable is screen parameters and then just activate flags on or off via N or Y values.

2.

If you do not have the manual, just run a big batch running a report with a different flag each time, for example:
PSNEWW 1 1 NNNNNNNNNNNNNNNN NNNNNNNNN N
PSNEWW 1 1 NNNNNNNNNNNNNNNN NNNNNNNNN Y
PSNEWW 1 1 NNNNNNNNNNNNNNNN NNNNNNNNY N
PSNEWW 1 1 NNNNNNNNNNNNNNNN NNNNNNNYN N
PSNEWW 1 1 NNNNNNNNNNNNNNNN NNNNNNYNN N
PSNEWW 1 1 NNNNNNNNNNNNNNNN NNNNNYNNN N
...
etc.

That way you should find out what each option do, but it may not be very easy to identify.
0
 

Author Comment

by:StewartGilligan
ID: 40571323
thank you.  I kind of figured we would need a manual of some sort.  thanks
ps  I have another batch question so I guess I should start a different thread
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Make the most of your online learning experience.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question