Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COBOL negative values
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01445813
Message ID:
01445880
Vues:
43
>>>>Hi Gang!
>>>>
>>>>Anyone know a little Cobol?
>>>>
>>>>I have to send some data in a text file to another site, and they gave me a layout for the data they want. They use Cobol picture clauses to tell how they want the data items expressed.
>>>>
>>>>I have a problem in how to express negative currency amounts....
>>>>
>>>>Here is an example...
>>>>
>>>>PAYMENT AMOUNT PICT S9(07)V9(02)
>>>>
>>>>I can see an amount like $123.45 being 000012345 (the left seven being 0000123 and the right two being 45).
>>>>
>>>>But how do I express -$123.45 ?? Since I can't put the - in the string at all, since it wants only numeric values......
>>>>
>>>>Thanks!
>>>
>>>VariableName PIC S999V99.
>>
>>Wow what is that new Cobol language? It looks like a really cool language with that PIC stuff
>>
>>8-D
>
>Almost as much fun as programming in XAML.

Yup, almost ;-)

Wow, we have agreed twice today. So far!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform