Variable format expressions

I'm having problem compiling the following code:
c varformat.f
     implicit none
     real test
c     character*10 test
     integer n
c     test='1234567890'
     test=12345.01
     do 10 n=1,12
     write(6,*)n
     write(6,11) test
10     continue
c11     format(2x,a<n>)
11     format(2x,f<8+n>.3)
     end
Invoking the compiler without any switch:
f95 varformat.f
the error message is
"varformat.f", line=13, column=15:error: integer constant expected where "<" is present.
Same problem with f77 with error message: unknown edit descriptor "<" has been detected.
Please help!

I will look into this. I got the same message.
Use of the angle brackets for variable format
should work. It is in the FD6 F77 Language
Description Doc.
canopus:bruces % !f95
f95 varfmt.f
11 format(2x,f<8+n>.3)
^
"varfmt.f", Line = 12, Column = 18: ERROR: Integer constant expected where "<" is present.
f90: COMPILE TIME 0.020000 SECONDS
f90: MAXIMUM FIELD LENGTH 4952622 DECIMAL WORDS
f90: 13 SOURCE LINES
f90: 1 ERRORS, 0 WARNINGS, 0 OTHER MESSAGES, 0 ANSI
canopus:bruces % cat -n varfmt.f
1 implicit none
2 real test
3 c character*10 test
4 integer n
5 c test='1234567890'
6 test=12345.01
7 do 10 n=1,12
8 write(6,*)n
9 write(6,11) test
10 10 continue
11 c11 format(2x,a<n>)
12 11 format(2x,f<8+n>.3)
13 end
canopus:bruces % f95 -V
f95: Sun WorkShop 6 update 2 Fortran 95 6.2 2001/05/15
Usage: f95 [ options ] files. Use 'f95 -flags' for details
canopus:bruces %
[ The posting applet stripps out fortran formatting ]

Similar Messages

  • How can I add a watch to a variable or expression during javascript debugging

    Since the new update to safari 6 I am looking for a way to add a watch to a variable or expression during javascript debugging. I don't want to go to the console line every time to type in the separate variables and expressions over and over again. Also hovering over a variable doesn't show the value.

    I couldn't find the answer either (I submitted an enhancement request to http://www.apple.com/feedback/safari.html in hopes that it will get added back in), but downloading a nightly build of webkit (http://nightly.webkit.org) will give you an alternative version of Safari that still uses the version 5 inspector, which to me is preferable anyway. 

  • Variable in Expression operator

    How can i use a variable in Expression operator.

    Can you please expain in detail what you intend to do so that the best approach can be outlined.
    Regards

  • Variable Format Changed In Open Workspace

    A bunch of years ago I complained to NI that while you're debugging and you set a variable format to what you want to see, CVI changes that format back to what it wants to show whenever you stop running.  I **FINALLY** got NI to agree that this was a tremendous debugging headache, and the FINALLY fixed it.  But somewhere along the way to CVI 2013, NI broke this again.
    For example, I do a lot of work on arrays of data.  The data is not ASCII but hex data that can be interpretted only if you know what to look for (as I do).  But that data makes no sense at all if you look at it in decimal.  So every time I run, I have to go back to my watch window and select every hex variable I want to look at (arrays, indexes, etc.) and change the format to what I want to see.
    NI, why did you break this, and can you fix it again?
    Thanks,
    Dave

    Hi Basel,
    It appears this happens not only when I stop then restart debugging, but also while stepping.
    Here's what I did:
    Create a global array, such as:
    array[] = {0xaa, 0xbb, 0xcc, 0xdd, 0xee};
    Then in my source code, I had a for loop such as:
    for(i = 0; i < 5; i++)
      // do stuff here not related to array[]
    I set a breakpoint on the for loop.  Ran in debug mode to the breakpoint.  Changed the format of array[] from decimal to hex, then stepped a couple of times and CVI changed the format from hex back to decimal.
    That is very irritating.
    Thanks,
    Dave

  • Format Expression not working properly in SSRS Report table cell

    Hello, for negative number format i am using the following format expression "#,##0,,;(#,##0,,)". For negative zero (negative values rounded to zero) the expression works fine in excel sheets(Format Cell expression) but not giving parenthesis for
    negative zero in SSRS Reports. 
    Please help me for this issue.
    Thanks in advance

    Can you try giving a custom format expression as below
    =IIF(Val(Fields!FieldName.Value)<0,"(#,##0,,)", "#,##0,,")
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How do i change the $Date variable format on an Ironport ESA to be DD/MM/YYYY

    I have an Ironport ESA running ASyncOS 7.6 and i use the $Date variable in notification emails.  It is currently formatted in the US way of MM/DD/YYYY but we need it to be formatted as DD/MM/YYYY.  Is there any way to do this?  The time zone is correct but i can't find anywhere to modify system variables.

    There doesn't appear to be any way to change the formatting of that variable.  Perhaps you can make use of $Timestamp or $GMTimeStamp instead?

  • JSTL: Using value of a variable in expression

    All, I am stuck on this problem and I hope someone here can help. This is a real tough one for me to explain but I'l try my best.
    I am try to have my includes a little more component oriented. So I wanted to use something like the following
    <c:import url="/somedir/outputusers.jsp">
    <c:param name="collection">users</c:param>
    </c:import>
    I would like to use the value of a request parameter in a JSTL expression. For example, say I have a Collection of objects implementing the User interface in the request under the name 'users'. Normally in JSTL I can reference it by ${users}. Now say I wrote a JSP page that will display any collection of objects that implement "User". I would like to use something like above to pass in the name of the variable in request scope, that points to the collection of User objects, i.e. "users". Then in the included jsp I would use JSTL to loop through the collection and output it in HTML.
    The problem is I cannot find any want of doing it. It would probably look something like this:
    <c:forEach var="user" items="${ ${param.collection} }">
    Any ideas?
    Steve

    In the worst case, you could always resort to using scriptlets to retrieve the parameter. and set it up as an attribute in the local page scope.
    <%
    String param = (String)request.getParameter("collection");
    Collection userCollection = (Collection)request.getAttribute(param);
    pageContext.setAttribute("local_collection", userCollection);
    %>
    <forEach var="user" items="${local_collection}">
    ,,,I think this should work.
    JSTL is great, but it can't yet replace every scriptlet, much as I would like it to.

  • Hiding variables in Express

    In Oracle express, what is the syntax for hiding a variable? I can open the .db file in Express Administrator and go to Property Inspector and set the property UserVisible to False. How can I do this in the code when I'm creating the variable?
    Thanks

    Hi,
    I don't have Express installed right now, so I can only make suggestions.
    1. Look to see if you have any objects which represent a data catalog, specifically DACAT or DA.CATALOG. In other Express applications you can hide variables using this catalog.
    2. Try using the OBJ and PROPERTY commands. The OBJ command can provide the list of properties are associated with a variable.
    e.g.
    show obj('PROPERTYLIST' <variable_name>)
    Then:
    consider <variable_name>
    property 'uservisible' FALSE
    Bill

  • Presentation Variable Formatting in Report Title

    I have populated 3 presentation variables via a dashboard prompt. I also display their values in the report subtitle, but I did not expect the following format in the display:
    from TIMESTAMP '2009-10-19 00:00:00' to TIMESTAMP '2009-10-25 00:00:00' for Abilene
    The dates appear formatted as 10/19/2009 and 10/25/2009 in the dashboard prompt which is how I want them formatted in the title. Where is this subtitle formatting originating? So, I can reformat it.
    Edited by: Bob from Austin on Oct 26, 2009 11:28 AM

    Hi.
    I suggest you to read this first:
    How to change date format mask in date dashboard prompts - drop-down list and calendar
    http://108obiee.blogspot.com/2009/03/how-to-change-date-format-mask-in-date.html
    On the end of this post is a explanation of date format and presentation variable in the title:
    And you can find a complete example here:
    Date between in filter and title when using presentation variable from calendar dashboard prompt or drop-down list in OBIEE
    http://108obiee.blogspot.com/2009/03/date-between-in-filter-and-title-when.html
    Before everything customize instanceconfig.xml, change datatype of TABLE.COLUMN in the physical layer to DATE and keep on eye if you are using repository variables as default values to dashboard prompt, which datatype they have, character, date or timestamp, this can cause problems. That's explained in the posts above.
    Regards
    Goran
    http://108obiee.blogspot.com

  • No variables or expressions in debug

    System set up:
    WinXP Pro, Eclispe 3.2, Flex 3 plugin, IE 6.
    I read a lot about how FF3 kills the debugging of Flex apps,
    but I moved my preference browser to IE to test it. I set a
    breakpoint on my code at where a variable is declared (Following
    Lynda.com example) and theirs shows the variable in the debug
    perspective, but mine doesn't (yes, I am clicking the debug
    button). Any ideas?
    I get information in the debug tab, but nothing in the
    variables area. I see the breakpoint in the breakpoints section,
    and nothing in expressions (which I imagine I wouldn't for
    now).

    "projectproofing" <[email protected]> wrote
    in message
    news:g7uu1v$hos$[email protected]..
    > System set up:
    > WinXP Pro, Eclispe 3.2, Flex 3 plugin, IE 6.
    >
    > I read a lot about how FF3 kills the debugging of Flex
    apps, but I moved
    > my
    > preference browser to IE to test it. I set a breakpoint
    on my code at
    > where a
    > variable is declared (Following Lynda.com example) and
    theirs shows the
    > variable in the debug perspective, but mine doesn't
    (yes, I am clicking
    > the
    > debug button). Any ideas?
    >
    > I get information in the debug tab, but nothing in the
    variables area. I
    > see
    > the breakpoint in the breakpoints section, and nothing
    in expressions
    > (which I
    > imagine I wouldn't for now).
    Did you click the little plus next to "this" ?

  • Variable format

    Hi all.
    I'm executing a query with a 0FISCPER interval variable (ready for imput and mandatory). In the variable selection screen, i can select the 0FISCPER value from a list... "001.2007, 002.2007, 003.2007", but when i pick one of this values (eg 001.2007), it returns "001 07". Of course it shows me the next message " Variable "Period/Fiscal Year (Interval Entry, Required)": Value "001 07" does not exist for characteristic 0FISCPER ".
    Note. If i enter directly the value "001.2007", there's no problem.
    Do somebody knows what's happenning?

    We have exactly the same problem.
    Any solution appreciated.
    I've seen one other thread which mentions "...need to lower the level of patch of Kernel to 133...."
    But I've no idea what this means so will check with Basis team.

  • Substitution run time variable format

    Dear All:
    Here is a simple sqlplus command line with & for substitution variable:
    set verify off;
    SQL> SELECT * FROM emp where sal >&SAL;
    Enter value for sal:
    Now as you see, oracle asks to Enter Value for substitution variable in line just below the SQL>. I wonder if there is one or more line could be left there so to improve the readability. So it should look like:
    set verify off;
    SQL> SELECT * FROM emp where sal >&SAL;
    Enter value for sal:
    Any help, advise, suggestion will be highly appreciated.
    Thanks

    user12018084 wrote:
    Dear All:
    Here is a simple sqlplus command line with & for substitution variable:
    set verify off;
    SQL> SELECT * FROM emp where sal >&SAL;
    Enter value for sal:
    Now as you see, oracle asks to Enter Value for substitution variable in line just below the SQL>. I wonder if there is one or more line could be left there so to improve the readability. So it should look like:
    set verify off;
    SQL> SELECT * FROM emp where sal >&SAL;
    Enter value for sal:
    Any help, advise, suggestion will be highly appreciated.
    ThanksSQL*Plus was never intended to be a User Interface utility.
    Accept reality & concentrate on more important issues than blank lines on terminal.

  • Variables, database, expressions in Pages

    *Making Pages a tool for techichans and researchers*
    Most advanced literature contains text created from specific datastructures.
    They could for example be
    1 a database being a reference list. At the referring point you use on text, eg "Andersen 56",
    at another place there is a refernce list with an entry being a line of a reference list.
    In this list there is a header "Andersen 56" and a text entry "Andersen Henry, My research title".
    2 there may be result described by an expression using several parameters and result.
    Current software as Microsoft Office, OpenOffice, InDesign, Quark etc does not support such feratures.
    Some simple variant was supported by FrameMaker, however discontinued.
    Implementation
    One need two parts, the TEXT and the EXPRESSIONS.
    The TEXT should be a Pages document.
    Into this document another view is included.
    It consists of severeal rows of parameters linked by expressions as in Numbers (or Excel).
    One entry (row and column) is referred from in the TEXT.
    The referred value (content in the EXPRESSION) is substituted at the particular referencing point.
    The text is styled according to style rules in Pages.
    *Importing and exporting rows of EXPRESSION*
    In order to export rows to other documents or rearrange the EXPRESSIONS andto recognize them: each row must use an IDENTITY.
    The reference in TEXT thus consists of (IDENTITY, COLUMN).
    Moving the row around among different documents or different tables is therefore possible.
    *Apple style*
    Combine Numbers an Pages in one product.
    Do allow the inclusion of any number of these ones in onde document.
    Make one as the main one.
    Let the user select the proper document to edit.
    *Power of the implementation*
    This is one of the most powerful document tools ever designed.
    The implementation cost is extremely low, Apple already have Numbers and Pages.
    Only a small reference battery, similar to hyperlinks, needs to be developed.
    GunnarC

    Hello
    Apple's programmers don't necessarily have the time to read user-to-user discussion groups.
    In fact, they don't visit it.
    Apple gave all of us an official channel to pass our wishes:
    _*Go to "Provide Numbers Feedback" in the "Numbers" menu*_
    My own point of view is that neither Pages nor Numbers are designed as tools for techichans and researchers.
    But it costs nothing to try.
    Yvan KOENIG (from FRANCE dimanche 2 décembre 2007 18:32:49)

  • Variable and Expressions Question?

    I got these questions from a practice book based on sections that talks about learning SQL
    and SSIS.  It does not have a Key to grade it.  Does any of the questions I answered look wrong(I answered in orange)?

    #5 is not correct, the answer Windows->Locals is correct
    Arthur
    MyBlog
    Twitter

  • Format of Variables Change When Debugging

    When debugging in LabWindows, the format of the variables (decimal, hex, ASCII, etc.) is always set to the default under certain circumstances.  For example if you step into a function, change format of a variable, step out then back in, the format has been reset to the default.  There are other instances when you run, stop, rebuild and debug where this is done also.
    I've asked NI to explain why the variable format can't be retained, at least within one debug session (until exiting LabWindows).  The explanation is they use a stack-based system to store this information so it is lost during debug.
    I find this to be an extreme annoyance and an enormous waste of time.  For example, I deal with a lot of arrays of binary data.  Seeing these array values in ASCII is of no value.  So I'm nearly constantly setting the format back to hex during debugging.
    I'm curious whether anyone else thinks this is a problem.  NI knows about this, but it's unlikely they'll do anything unless there is a lot of feedback from us users on the value of fixing this.  Post a note and let me (and NI) know what you think, whether you think this is important or not.
    Thanks,
    Dave

    Hi Chris,
    Yes, using Format >> Preferences is exactly what I was talking about when I said "change the format of a variable".  Thanks for giving the exact details of doing this.
    I'm still using v8.1.  I'm leery of renewing my service contract because I don't feel NI is listening to me (as a customer, not just a LabWindows user) regarding the issues that affect my work and ways to greatly improve my productivity.  I have been suggesting this for a few years now, to no avail, both with tech support on the phone and through your product suggestion center.
    I can't explain all the intricacies of the issue.  Maybe what you have to do is set breakpoints and run rather than step in and out.  Here's what an engineer in NI's R&D center said:
    It's not actually rebuilding the project that causes the information to be lost. It's actually even worse than that. As variables come in and out of scope, the formatting and the expand/collapse state of each variable is lost. So, if you've hit a breakpoint in a function and re-formatted a local variable, and then continue debugging outside the function, eventually stepping back into the function, the formatting for the original variable is reset when the item is created anew in the variable display, based on the data type of the variable.
    The problem we have is that the formatting information is stored in stack-based memory which is associated with the actual items that you see in the variable display. As these items disappear and are re-created in the variable display, the formatting information is reset.
    The complexity of representing variable scope information, including arbitrary block scopes, makes it pretty hard to maintain variable information in global, non-stack-based memory. It's obviously not impossible, but unfortunately it would require a fundamental redesign of our debugging paradigm.
    Finally, we have heard this request from multiple customers, and I assure you that you are not the only customer who has asked for this feature.  The problem with this feature, as with many other feature requests is one of trade-off. It is obviously impossible to accept all the feedback that we receive, and so we are constantly having to weigh development costs of a particular feature, the risks involved in implementing it, and how widespread its benefits are.  So far, this feature has not made the cut. However, this does not mean that we're ignoring it, or any other customer feedback. Many customer-requested features have made it into previous releases, and we're confident that this will too, in the not too distant future. As a matter of fact, we can honestly say that most new features in a given CVI release originate with customer requests. I also just want to re-emphasize that each time you reiterate how important a given feature is, it drives up its priority and makes it more likely that we will implement it sooner, rather than later. With that in mind, we definitely welcome your suggestion to post a note about this request in the forum. We expect other people to second the request, and the more people that do that, the better.
    So my question wasn't posted for NI to respond.  It was to find out if anybody else using LabWindows finds this issue to be detrimental to productivity.
    Thanks,
    Dave

Maybe you are looking for