Add Command question

To forum participants,
I need to take a data file and construct a table.  The data file is written out in one long record format, see example below.
Property ID Year Batch Base01 Penalty01 Interest01 Base02 Penalty02 Interest02 Base03 Penalty03 Interest03
1234           2009 abcd  500.00  50.00          25.00     300.00  30.00       15.00         600.00   60.00       30.00
Property ID     Year     Batch #     Base Tax     Penalty     Interest
1234     2009     abcd     500.00     50.00     25.00
1234     2009     abcd     300.00     30.00     15.00
1234     2009     abcd     600.00     60.00     30.00
I need to create a table like the one above.  I was hoping that this would be possible through the Add Command feature.  Any help would be greatly appreciated.
Bdecker

To forum participants
OK, I didn't make myself clear.  I don't really want to make a table.  It's my understanding that the Add Command creates a subset of data that can be used in a report, just like a table.  This is what I'm needing.  I will try to provide a more simple example.
The lines immediatly below is an example of the data file I'm dealing with.
Customer Name    Order # 1                                         Order # 2                                     Order # 3
                               Date            Product         Price       Date            Product         Price     Date            Product         Price     
ABC COMPANY    04/01/11  Bike Helmets    100.00     03/01/11  Bike Seats    200.00     02/01/11  Bike Chains    100.00
Below is what I hoped I could accomplish with the Add Command.
Customer Name       Date            Product         Price      
ABC COMPANY      04/01/11  Bike Helmets    100.00    
ABC COMPANY      03/01/11  Bike Seats    200.00    
ABC COMPANY      02/01/11  Bike Chains    100.00
So I don't need to make a new file, I just need to rearrange the data.
B Decker

Similar Messages

  • Add command with SAP SAP Tables & Clusters.

    Hi All,
    One of my customer is using the SAP integration kit and the document states that we can have a Add Command option in Crystal Reports XI against the SAP tables.
    So in Crystal Reports can we create an ADD COMMAND option against the SAP tables?
    Regards,
    Prashant Saduwale

    Post your question to the Business Object Integration Kits forum

  • Excel data source and the use of add command

    HI, Looking for suggestions on how to work with multiple inputs that cannot be joined directly.  Here's the background.
    The Report currently reads in two different Ecel files and uses 3 SQL commands to query an Oracle Database.  I need to join the 5 data sources and am having issues with the 2 excel files.  In one file I need to be able to derive a field based on another column in the file In order to create the join condition to the SQL commands.  I'd equate this to a case statement in SQL, but how goes one do that using the 'add command' feature?  What is the syntax?
    Next I would need to join (left outer) the two excel files using two fields from file A (a1, a2) and 3 fields from file B (b1,b2,b3), where a1=b1 and b2 <= a2  <= b3 when rows from A exist in B.  If row A does not exist in B then we still want it in the report and available to left outer join to the 3 oractab data sources.
    runtime is also a concern.
    Any Suggestions?

    hi Elena,
    in this case the use of subreports is not recommended. that's because you're exporting to excel and you need data in columns across the report. subreports will not, unfortunately, give you what you need.
    this would bring you back to joining the datasources. what i would recommend is looking into using 'oracle database link' to link your oracle db to excel files. here's one article as an example but you may be able to find a better one. if you have questions on this please ask them on an oracle forum as the syntax that you need will be database specific.
    a lot of databases have this type of technology which allows you to create a view to other data. sql server has 'linked servers', sap hana has 'smart data access'. essentially you are creating a non-materialized view to the external data. then this view is available on the main oracle server where you established this connection. this should be a lot easier than trying to bring a bunch of command objects together off independent datasources inside of crystal.
    -jamie

  • Setting VarChar Variable with String Parameter in Crystal Report Add Command

    Setting a VarChar Variable with a String Parameter in a Crystal Report 2008 SP6.3 Add Command is causing an error with a SQL State of 42000.  The Error Code depends on which value I select for the parameter.  I created the @DateOpt string parameter in the Modify Command window, not in the report. If I comment out line 14 of the SQL the error does not occur.
    I have attached the SQL Code and screen shots of the errors.   Please tell me what I am doing wrong.

    Since your parameter is of type STRING, you need to enclose references to it within the Command inside single quotes.
    For example, instead of
    SET @BeginDate ={?BeginDate}
    use
    SET @BeginDate ='{?BeginDate}'
    hth,
    - ido

  • Add Command button not in the Database Expert: VS2003

    We are using VS2003 and the bundled version of Crystal Reports.  We have no plans of upgrading right now, unless we have to. What I'm trying to do should be simple...
    We have an existing report that lists incomplete orders, including invoice# and items in the order.  One of the possible order items is "MISC", however, that is not descriptive, so I am trying to add a SQL query that will look up the actual MISC item text based on Invoice # (one of the fields in the report).  I was trying to do this via a subreport.
    The help file and this Youtube video ( [Crystal Reports Tutorial Creating SQL Commands| http://www.youtube.com/watch?v=BHNHsIUbcn8]  ) suggest the way to do this is to click "Add Command to Report" from the Database expert, which will let me add my own SQL command.
    However, "Add Command" is not visible, and I cannot get it to appear.   Under what circumstances would it be hidden or disabled?  How do I get it to appear so I may add a custom SQL item to the existing report?
    Any help is greatly appreciated.   Thank you in advance.

    Not possible with your version of CR. You'd have to upgrade to the current version of Crystal Reports (12.x).
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Does MAC OS have a "route add" command similar to a DOS command?

    Does MAC OS have a "route add" command similar to a DOS command?
    I know that with DOS, you can type "route add 192.168.x.x MASK 255.255.x.x 192.168.x.x" to add a route on your PC,but does MAS OS X(10.4.9) have something similar to it? I have a network printer that my winXP can access but my MAC cannot. I was unable to ping it from both wINXP and MAC. But after I added the route to my winXP I was able to ping and print to it. I do not know if I can do the same to my MAC. Does anyone know what the command is?
    Thank you in advance.

    Yes, and Welcome! ...
    http://www.osxfaq.com/man/8/route.ws
    And to make it permanent...
    http://www.osxfaq.com/tips/kluskens/index.ws

  • Crystal Reports shuts down when trying to use the Add Command feature

    I am using Crystal Reports 9 with and Oracle database.  I go to new report, as a blank report, new connection to oracle, double click add command, paste the sql and click ok and crystal shuts down at that point.  Any one have this happen before?? Please help??

    Hi Allison,
    Have you tried with  basic syntax at command level.
    If you face any problem using Add command in crystal designer, just try to reinstall the product.
    Regards,
    Naveen.

  • When i try to download an app and i have entered my password i am asked to add some security questions. I can add two questions and an alternative e-mail address, however it will not let me select the third security question.

    when i try to download an app and i have entered my password i am asked to add three security questions. I can add two questions and an alternative e-mail address, however it will not let me select the third security question.

    Thanks Liam. After the second ap download it asked me three security questions on iTunes and on my MAC it allowed me to set up these with no error on the third question. iPAD 3 now downloads apps fine.
    Apple really need to sort out this issue or provide guidance on this. Two days of the unit not really being fit for purpose - what use is an IPAD without the ability to download aps.
    Also NO Response from Apple via online tech support and it's now been nearly 24 hours - I was told by telephone support I would get a response within 24 hours or less, as also stated in the email response too!??
    It would be good to get a formal response from Apple on this rather than radio silence.

  • How to pass db source data to condition of add command ?

    I add a command (select * from abc where a='xy') to report,
    and I want to pass field (order number) of table xyz to 'xy'.
    How to do it?
    abc is one sql table ,  xyz is another table.

    why not you link them in the Links section
    link xy of the add command to xy of the table.
    is it hard?
    i mean
    in the add Command
    select xy from sometable
    and in the table there is a field called xy
    so in the links, you can link them together.
    good luck

  • Linking 2 tables with Sql Expressions or add command

    Hi
    I want to make a custom table using a union all using cr2008 but I'm unable to find/enable the sql expressios field? It's just not there?
    I've tried using the add command is the database expert but I cant see how to get this work.. I have 2 data sources that each consist of identical tables (but different data).  I have 2 tables I want to link:
    datasource1 statstable
    datasource2 statstable
    So I want to do:
    SELECT * FROM datasource1 statstable
    UNION ALL
    SELECT * FROM datasource2 statstable
    but it wont let me do this as the 2 stats tables are in different datasouces.
    I would really appreciate any help you can give me.
    thanks

    you can not do this unless you use busines views.
    you can not create one report based on two different datasources using crystal reports,
    my advice to you to solve this problem
    start to look for the "business views"
    which allow you to create a strucutre based on many different datasources, you create 2 connections for your datasources and map them in the view.
    then you use those business views in crysal reports to create you report.
    it may looks complicated, but i admit its too easy and not hard.
    you can get a small book about business views manager which comes with BO XI R2 or Xi 3.0
    from the business objects support site.
    i hope it was clear for you
    good luck

  • ADD COMMAND-link 2 fields where numeric value matches

    I have a Add Command that looks like this.
    SELECT *
    FROM "AS400"."MTMODBC"."#MTMTRP" "_MTMTRP"
    LEFT OUTER JOIN (
    SELECT CHGTRP, CHGFCD, Max(CHGDTE) As Max_CHGDTE, Max(CHGTIM) As Max_CHGTIM
    FROM  "AS400"."MTMODBC"."#MTMTCHG" "_MTMTCHG"
    WHERE CHGFCD= '076'
    GROUP BY CHGTRP, CHGFCD
    ) C1
    ON
    TRIP#=CHGTRP
    LEFT OUTER JOIN "AS400"."MTMODBC"."#MTMGAS" "_MTMGAS" ON (TRIP#=GTRIP#)
    LEFT OUTER JOIN "AS400"."MTMODBC"."#MTMMBR" "_MTMMBR" ON (TCSTKY=MCSTKY)
    LEFT OUTER JOIN "AS400"."MTMODBC"."#DMSFAC" "_DMSFAC" ON (TDELZP=DFZIP and DFADDR1=TDELVA)
    LEFT OUTER JOIN (SELECT TRIP# AS NTRIP#, THCPCS
    FROM "AS400"."MTMODBC"."#MTMND" "_MTMND") N1
    ON TRIP#=NTRIP#
    WHERE TINSCD= '0342' and
    (TRPFLG Like 'S%' OR
    TRPFLG in ('X1','X2','X3')) and
    TREASC not in ('53','81') and
    TAPTDT>=20101001 and
    TAPTDT<=20110331
    The bolded fields are Alpha numeric and I would like to match them on values
    EX: DFADDR1 has a value 123 High St
    and TDELVA has a value 123 High St
    How do I match them on the first 3 digits?
    Thanks!
    Achett13

    Hi,
    What about using  substing function in the join.
    (TDELZP=DFZIP and substr(DFADDR1,0,3)=substr(TDELVA,0,3))
    I have assumed that numeric filed length is fixed.Which is the database?
    Regards,
    Bilahari M

  • When I try to add a question mark, instead I get this ÉÉÉÉ

    When I type a question in my email and add the question mark, this is what I get ÉÉÉÉÉ

    Windows remembers the keyboard layout setting per application and you may have changed the keyboard layout by accident via a keyboard shortcut.
    See:
    * http://windows.microsoft.com/en-US/windows-vista/The-Language-bar-overview - The Language bar (overview)
    It is possible that you have switched the keyboard layout by accident.
    * Make sure that you have the Language bar visible on the Windows Taskbar.
    * You can do that via the right-click context menu of the Taskbar: Toolbars > Language Bar.
    * Check the keyboard language (keyboard layout) setting for the application that has focus via the icon on the Language bar.
    * You need to do that while Firefox has focus because Windows remembers the keyboard layout setting per application.
    * The default keys to rotate the layout is a combination (Ctrl+Shift or Alt+Shift) that can easily be used in Firefox to activate a menu item.
    * To avoid an unintentional switch, assign a specific key sequence (Alt/Ctrl+Shift+number) to select keyboard layouts and remove the key combination to rotate layouts (Alt+Shift or Ctrl+Shift)
    Control Panel > Regional and Language Options > Keyboards and Languages > Change keyboards > Advanced key settings > Change key sequence

  • Add Command when selecting data tables

    I've been playing with the Add Command option that allows you to enter an SQL statement to select data for the report.  I was wondering what people use this type of command for?  I've used Crystal over 10 years but while I've been using Crystal XI for only about 3 years, I have never used this option.
    So what advantages does it have over the graphically selection and linking of data tables?
    What types of reporting is usually done with them?
    TIA, rasinc

    You have to know your database well and have fairly good SQL skills, but I've found that there are things I can't do directly in Crystal that I can do when I use a command as the data source.  A couple of examples are:
    1.  When I want to use cross-server joins (MS SQL) or dbLinks (Oracle) to get data from a second (or third!) database, this is the only way to do it short of using a stored procedure, which has it's own issues.
    2.  When I want to do something complex in the SQL, such as using a set of selects with Unions to "pivot" data without using a cross-tab.
    Also, Crystal doesn't always create the most efficient SQL so if I'm having problems with query performance in a report, I'll re-write it using a command so that I can tweak the performance.
    -Dell

  • Multiple Oracle SQL statements in one Add Command

    I am creating a report that needs a bunch of processing(SQL DDL statements) before the final select statement is generated for the report.
    I am connecting to Oracle database however Crystal Report only allows me to give one SQL statement in one Add Command.
    Is there a way to give multiple statements in one "Add Command" for the report ?
    Thanks.

    you can add more than one "Add Command" in the same report, and you can also treat them as views or table, so you can link them to each others and so on
    good luck

  • I have a filable form and I need to add ranking questions

    I have a filable form and I need to add ranking questions. How do I do this?

    Kernel panics are usually caused by a hardware problem – frequently RAM, a USB device or a Firewire device. What external devices do you have connected? When trying to troubleshoot problems, disconnect all external devices except your monitor, keyboard and mouse. Do you experience the same problems?
    To eliminate RAM being the problem, Look at this link: *Testing RAM* @ http://guides.macrumors.com/Testing_RAM Then download & use Memtest & Ramber.
    Do you have an Apple Hardware Test disc? Running the Apple Hardware Test in Loop Mode is an excellent troubleshooting step for finding intermittent hardware problems. It is especially useful when troubleshooting intermittent kernel panics. If Loop Mode is supported by the version of the Apple Hardware Test you are using, you run the Extended Test in Loop Mode by pressing Control-L before starting the test. Looping On should appear in the right window. Then click the Extended Test button.The test will run continuously until a problem is found. If a problem is found, the test will cease to loop, indicating the problem it found. If the test fails, be sure to write down the exact message associated with the failure.In some cases, RAM problems did not show up until nearly 40 loops, so give it a good run.
    May be a solution on one of these links.
    Mac OS X Kernel Panic FAQ
    Mac OS X Kernel Panic FAQ
    Resolving Kernel Panics
    Avoiding and eliminating Kernel panics
    12-Step Program to Isolate Freezes and/or Kernel Panics
    Cheers, Tom

Maybe you are looking for

  • Making a script that generates an output file dynamic

    I've created the following script to run it from within SQL*Plus on my PC to generate a report regarding specific details about all my databases in one file. The idea is to get 1 result of all my databases. Spool C:\output.txt; -- start DB1 CONNECT s

  • Mac book pro or Mac pro

    Ok, I'm looking at upgrading and all that fun stuff. I would like to get everyones opinion on if I should go with a MBP or a MP. I'm torn, half of me wants the beast of a MP but the other half would like the portablity of the MBP. I use FCE3.5, most

  • How to redirect the page to home after alert message in APEX

    Hi All, I have 4 tab and home page APEX report in that home page I have organization to select as parameter for all the page which is mandatory column so without select the organization in home page I can move to other 4 page but some time users dire

  • MPB 17" Student backpack

    Ok, I just got my MBP 17" and I leave for college in August. I need a laptop backpack. But, I need one that lets me carry a couple books as well. I've looked on the site and a couple reviews say most of them are hard to fit the MBP in without pulling

  • XML file has some extra junk character

    Hi Experts,                   When i store file in application server,some extra junk character at last in xml file.So it gives error like below.   An invalid character was found in text content. The last row of XML internal table has some extra spec