Automatic number series?

Hi all!
I've tried the pages forum but hit a dead end and was refered to this forum. This is what i posted in the pages forum:
"I have been lurking these forums for a long time as a guest (to lazy to actually sign in) and now I have a question I can't find the answer for...
First some background: I am using my computer for my thesis (medical statistics and traumatology) and most often I write my commands in Pages and then "copy/paste" them into my commandprompts in the statisticalprogram(STATA) as an "do"-file. This usually is a very efficient method for me and "search/replace" have been a good old friend for years. As time goes by my work is increasing in size and my last thing is thinking about trying to make Pages help me do "automatic number series"(?) instead of "search/replace". Is there anyone out there who knows how to make the program do my work so I could save my brain(and time) to more important things?
this is the command i want to change:
gen S055_surv=1 if dead==0 & (hdia=="S055" | bdia1=="S055" | bdia2=="S055" | bdia3=="S055" | bdia4=="S055" | bdia5=="S055" | bdia6=="S055" | bdia7=="S055" | bdia8=="S055" | bdia9=="S055")
gen S055_total=1 if hdia=="S055" | bdia1=="S055" | bdia2=="S055" | bdia3=="S055" | bdia4=="S055" | bdia5=="S055" | bdia6=="S055" | bdia7=="S055" | bdia8=="S055" | bdia9=="S055"
egen S055_surv_srr=total(S055_surv)
egen S055_total_srr=total(S055_total)
gen S055_srr=S055_surv_srr/S055_total_srr
the next in the series will look like this:
gen S056_surv=1 if dead==0 & (hdia=="S056" | bdia1=="S056" | bdia2=="S056" | bdia3=="S056" | bdia4=="S056" | bdia5=="S056" | bdia6=="S056" | bdia7=="S056" | bdia8=="S056" | bdia9=="S056")
gen S056_total=1 if hdia=="S056" | bdia1=="S056" | bdia2=="S056" | bdia3=="S056" | bdia4=="S056" | bdia5=="S056" | bdia6=="S056" | bdia7=="S056" | bdia8=="S056" | bdia9=="S056"
egen S056_surv_srr=total(S056_surv)
egen S056_total_srr=total(S056_total)
gen S056_srr=S056_surv_srr/S056_total_srr
ie the number is slowly changing from S000 to S999 and then starting with T000 etc...
I just wonder if there is a way that the university could avoid me beeing paid for doing "search/replace" for hours/days?"
The problem is we couldn't find a way to make a table that did what we told it. (https://discussions.apple.com/message/26065383?ac_cid=op123456#26065383)
Is there anyone out there with a soloution?
Kind Regards
//Robert Larsen

Robert,
Create two tables as shown below:
The top table is a set up table
The bottom table creates the updated queuries.
In the set up table paste the exact query into the cell for the queury (cell B3) but replace the "S0055" with "<X>".  To make the example fit I abbreviated the query
In the bottom table (name "Query Results"):
the first row is a header row
A2=CHAR(CODE(SetUp::$B$1)+(ROW()−2)÷SetUp::$B$2)
this is shorthand for... select cell A2, then type (or copy and paste from here) the formula:
=CHAR(CODE(SetUp::$B$1)+(ROW()−2)÷SetUp::$B$2)
B2=REPT("0", LEN(SetUp::$B$2)−LEN(MOD(ROW()−2, SetUp::$B$2)))&MOD(ROW()−2, SetUp::$B$2)
C2=A2&B2
D2=SUBSTITUTE(SetUp::$B$3, "<X>", C2)
select A2 thru D2, copy
select columns A thru D
unselect cells A1 thru D1 by holding the command key while single clicking cells A1, B2, C2, and D1
paste
you can now select column D and copy the queries, then paste somewhere else

Similar Messages

  • How sort projects by given number serie (ie. date)

    Hi,
    Right or wrong my 35 000 photos are in the library put in folders by year. Within each year there are projects (approx 30 -70 per year) with project names such as "20100725 closeups of a moose". When i add new projects as days go by and name them by the date series I use, they do not automatically drop into a slot as they would if sorted by the number.
    How do I sort projects by their name (ie number series)?
    please advice,
    regards pyry.

    Hi
    Right click or control click on a year folder, go down to Keep Arranged By, choose Kind, Name or Manual
    gary

  • Excise Invoice Number  Series Change

    Hi Gurus
    Its very close to end of financial year on 31st march and according to the rules
    of Excise.. the excise number series should be changed ..
    so plz anyone suggest me how this number series is maintained and how it can be changed

    Hi,
    If it is related with Maintaining New Number Ranges:
    Go to the T ransaction SNUM and maintain the New number range for the Excise Invoices.
    Regards,
    Anji

  • Is there a way to Automatically Number in Mail?

    You can automatically number in Outlook. My client recently switched from a PC to an iMac, and wants to know how to easily number.
    Thanks. Kara

    Hello Kara.
    Sorry but it has been a long week for me.
    Automatically number what exactly?
    Are you referring to a bulleted list with numbers instead of bullets?
    If so, the Mail.app includes no such feature.

  • Error: External NotaFiscal number/series is wrong, in MIRO - CreditMemo

    Hi All,
    Could any one investigate and rectify my issue.
    When I'm posting an Credit Memo in MIRO, I'm getting an Error: "External NF number/series is wrong"
    Full detials of the error
    Message no. 8B 236
    Diagnosis
    A possible reason is that you are trying to create a complementar / correction with reference to another complementar / correction. This is not possible in the framework of the document flow chosen here.
    System Response
    Not possible to proceed.
    Procedure
    o Cancel the preceding complementar / correction.
    o Issue a new order with reference to the original billing document.
    Details of the Activity happened for the PO
    a. PO: 4572043603 Dated: 22.01.2009, with Item: 1 having Qty: 350 with Unit Price: 8.82
    b. GR: 5000063901 Dated: 22.01.2009, with Item: 1 having Qty: 200 with Unit Price: 8.82
    c. IR: 5105684784 Dated: 22.01.2009, with Item: 1 Having Qty: 200 with Unit Price: 8.82, and Nota Fiscal Type: E1 - status as Doc.Type: Nota Fiscal, Direction Movement: Incoming, NF Partner: Vendor
    d. Now doing while a credit memo (getting error as said) in this with Nota Fisal: E4 - status as Doc.Type: Return, Direction Movement: Outgoing, NF Partner: Vendor
    Waiting for anyone to response and give me some solution on this error to rectify
    Thanks in Advance.
    Regards
    Dinakar

    Self resolved.
    Solution used: made PO Status as GR Based IV (ensure that this status is available before any transaction of GR & IR is done for the PO)

  • How do I automatically number rows in Numbers for iPad?

    How do I automatically number rows in Numbers for iPad?

    Hi James,
    On the iPod I can only insert what is on the clipboard but I can insert however many rows I have there. Is it working differently for you? Benjoon seemed to think that he could not do this in Numbers. He was ruling Numbers out because of it. He doesn't need to do that because of this issue.
    If I was needing to insert multiple blank rows often I might keep a table of blank rows or just some blank rows at the end of the working table that I could copy/paste. This is no different than Numbers on the Mac.
    quinn

  • Number series

    Dear expert,
    i created posting period fro years 2013-14 and 2014-15. Client create some invoice in 2013-14 that due date is in 2014-15.
    Now system not provide option for update periods indicator for posting periods  or old number series.
    How we can solved our issue

    Hi,
    Any error message?
    Thanks & Regards,
    Nagarajan

  • Format of external NF number/series is wrong

    Hi,
    When i was trying to create a returns order on reference field i need to enter the nota fiscal number but when i enter something which is more than 6 characters it is giving this error:
    "Format of external NF number/series is wrong"
    Can anyone please tell me where this format is defined??
    Many thanks...

    Hello,
    This issue is related to the localization Brazil process. I know that exists some SAP notes to similar issues. But I'd recommend you to check the SPED & NFe forum in the SDN portal.
    They can advise you better in this area since it's not related to FI.
    REgards,
    REnan

  • Authorization based on number series

    Hi All
    is anybody aware of how can we set the authorizations on the basis of number series for a particular user

    Hi
    When you make the series, you will see there i a default group. Allocate a group. Then go to authorizations. select a user then in the authorizatiuons window expand administration, then expand System Initialisation, expand series and then say what group the user has authorizations to.
    Hoipe this helps

  • Automatic "number of visible categories"

    Hello,
    did anyone know how to implement in code automatic number of visible categories in graph. I need to do in code something that user can do manually on graph by clicking: Right button mouse click on a vertical axis of ALV Graphics -> Format gridlines -> Scale tab -> Checkbox 'Automatic' (number of visible categories).
    I need the same effect, but before first display of ALV graphics. I have to mention, that I don't implement manually the AVL Graphics. It's all default, by clicking a button on my ALV Grid.
    Is it possible to change it in code?

    Hi all
    this Problem is known as BUG No. 2768129, tar: 2748723.995
    From Tar:
    When creating 50 files in a directory that is mounted through NFS, and doing an ls afterwards, only 40 files are listed. The number of files listed depends on the length of the file names. If the file names are longer it can happen that ls lists less files.
    It appears that this behaviour is specific to the HP-UX NFS client when it accesses the 9iFS NFS Server.
    Solaris, or Linux NFS clients behave correctly. Additionally, the HP-UX NFS client against another NFS server (for example an HP-UX NFS server, or a Tru64 Unix NFS server) is also behaving correctly.
    This can only be seen when using NFSv3. When the 9iFS NFS directory is mounted using NFSv2, all files are listed correctly.
    That's the recommended workaround.;-)
    bis denne...
    Rico

  • Automatic number generation using the function module

    Hai Everyone,
    I have the doubt in automatic number generation.
    i find the function module. the function module is
    report 123.
    *DATA: RC         LIKE INRI-RETURNCODE,
         NUMBER(10) TYPE C.
       CALL FUNCTION 'NUMBER_GET_NEXT'
            EXPORTING OBJECT          = 'HUGO'
                        NR_RANGE_NR     = '01'
            IMPORTING RETURNCODE      = RC
                        NUMBER          = NUMBER.
      CASE RC.
        WHEN ' '.
         everything o.k.
        WHEN '1'.
         the assigned number lies in the critical area.
        WHEN '2'.
         this was the last number, next time the first number
          will be assigned
      ENDCASE.
      write:/ number.
      in that function module what i want to give the  Exporting Object  'HOGO'. where i want to define the number range. what is meant by 'HOGO'.
    If any one faced the same problem plz help me.
    Thanks and regards,
    P.Naganjana Reddy

    Hai Chandrasekhar,
    in that what i have to give. Plz help me in this.
    Subobject data element
    To-year flag
    Number length domain
    No interval rolling
    Number range transaction
    Warning %
    Main memory buffering
    Group table
    Subobject field in group table
    Fld  NoRangeElement
    Fields int./ext. no.range no.
    Fld. NoRangeNo
    Display element text
    Thasnks and regards,
    P.Naganjana reddy

  • I want to force a user to use a particular number series

    Hi,
    I have setup my journal numbers such that under document numbering setup => Journal enteries I have the following document numbers
    Name        Start No    Next No
    Primary             1 
    Transact        400001 400016
    Jnls               600001
    The default is setup to Transact, so all system journals are posted against this number series (so all transactions effectively).  I want one of my users to be able to input journals but they must use the Jnls number series.  Unfortunately they are not responsible enough to always check the top left corner of the journal entry screen to make sure they are posting into the correct series. 
    How can restrict them so that they can only post into this series?  (Obviously they need to be able to continuing posting AP/AR invoices which will ultimately be posted against the transact series).
    Thanks
    Dan

    Hi Dan,
    Please check in Test if it can help :
    Create two Journal Entry series and when you try to SET DEFAULT the series by clicking on Set Default, then you can assign it to specific user or to all the users.
    Check if this is what you are looking for.
    Regards,
    Jitin

  • Automate a series of keystrokes

    greetings,
    i'd like to automate a series of keystrokes, kinda like photoshop does with actions.
    is there a function in fcp to do this?
    essentially, i'd like to do shift-G control-G (find next gap, eliminate gap) about 500 times over by the pressing of one key. this will eliminate gaps in my timeline while preserving the chronology of each track.
    thanks a bunch!
    jones

    I don't know whether this helps but this is what my friend and I did.
    He has FCP running on Leopard - we used Automator to record the keystrokes, saved it as an Applescript. And because I'm running Tiger, we took that script into Applescript, did some slight tweaks (As Leopard uses certain features that are not available in Tiger, main thing being the Tell Application command) and voila! It runs beautifully.
    It's very easy and fast. Good luck!

  • Accounting Number Series at Profit Center Level

    Dear All,
    Is it possible to assign Accounting Number Series at Profit Center level?
    Thanks in advance,
    Nirav Bhatt

    Hi
    If you have new GL and PCA active, it would be very difficult to have Document Types assigned at profit center level. The document types are assigned at company code level and not profit center. There would be many transactions which would have multiple profit centers. How would you seggregate them, even if you use different document types as suggested for various profit centers?? Morever, most of the posting in FI come from other modules and are posted by the system because of the transactions in other modules. So it is practically not feasible to have profit center wise document numbers.
    However, for Indian Scenario, you can have SD Tax Invoices for every plant, where billing is done. Secondly, SAP has delivered excise documents to be numbered differently for every excise registration.This is to meet the Indian Reporting requirements.
    Further, pls refere the postings in SDN before posting a question. There are lot of replies to your queries.
    Regards
    Sanil Bhandari

  • DPR_ATTRIBUTES - Automatic number generation of Project ID

    Dear All,
    I am using the method 'SET_DEFAULTS_UPON_CREATION' in  BAdi 'DPR_ATTRIBUTES'  for automatic number generation of Project ID in cProjects.
    I am able to change the project ID with my new number in CS_ATTRIBUTES. But the same is not getting populated to cprojects screen.
    My code --
      FIELD-SYMBOLS:
        <ls_attributes> TYPE dpr_ts_project_int.
      CASE flt_val.
        WHEN cl_dpr_co=>sc_ot_project.
         ASSIGN cs_attributes TO <ls_attributes>.
          CALL FUNCTION 'NUMBER_GET_NEXT'
            EXPORTING
              nr_range_nr = '01'
              object      = 'ZXX'
            IMPORTING
              number      = g_pid.
          CONCATENATE g_ptype g_pid INTO g_newpid SEPARATED BY '-' .
            MOVE g_newpid TO <ls_attributes>-project_id.
    ENDCASE.
    While debugging the new project ID can be viewed in CS_ATTRIBUTES.
    Can you please let me know what might be the issue for not populating on cprojects.

    Hi Matthias,
    Thanks for the reply.
    Can you please help me where exactly the external_id attributes needs to be changed.
    Your help is greatly appreciated.
    Matthias

Maybe you are looking for