[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: Beginner's question



You can use the "let" command to right justify (rpad).

-----Original Message-----
From: Romaella, Robbi [mailto:rromaella@NESPOWER.COM]
Sent: Tuesday, May 04, 1999 3:18 PM
To: Multiple recipients of list SQR-USERS
Subject: Beginner's question


Hello everyone,
        I will apologize for the simplicity of this question up front as I
am new to SQR.
I would appreciate any help and tolerance you can afford a beginner.

I am writing to a predefined flat file of fixed length. One of the fields is
a calculated field defined as 999999v99.
I am currently using the form:

        Write 1 from $Field1:8 $Field2:10 $Fiedl3:10...............

When I add the numeric field  #Field4  in the sequence above  it will not
let me use the length assignment (#Field4:8 )
The error says that the numeric variable must have :length of 1, 2 or 4
bytes.
Realizing the decimal is only implied, how do I get the fixed field
definition I need?

I thought about moving the numeric variable to a character field, but in the
above form I did
not know how to right justify the field.

Robbi Anne Romaella
SCT Corporation
rromaella@nespower.com
(615) 747-3078