Cjandura58
New Member
I need to output several numerics fields as strings using stream but I need to right justify these fields and fill the left side with spaces. Can any one help me out with this.
This is an example of what I'm doing. The entire file will output 80 string fields to a file.
______________________________________________________
Def Stream strmHELPL.
Def Var file-out As char No-undo.
Assign file-out = "C:\unidev50\HELPECdata.txt".
Def Var f-strTmp As char No-undo.
f-strTmp = "".
f-strTmp =
/* header */
String(vh-Client,"x(4)") + String(vh-BatchFeedId,"x(6)") +
String(vh-BatchSeqNum,"x(6)") + String(vh-RecType,"x(4)") +
String(vh-Tsys,"x(30)") + String(vh-TransId,"x(8)") +
String(vh-FillerA,"x(2700)").
Output Stream strmHELPL To Value(file-out).
Put Stream strmHELPL UnFormatted f-strTmp.
Output Stream strmHELPL Close.
__________________________________________________________
Thanks,
Carrie Jandura
This is an example of what I'm doing. The entire file will output 80 string fields to a file.
______________________________________________________
Def Stream strmHELPL.
Def Var file-out As char No-undo.
Assign file-out = "C:\unidev50\HELPECdata.txt".
Def Var f-strTmp As char No-undo.
f-strTmp = "".
f-strTmp =
/* header */
String(vh-Client,"x(4)") + String(vh-BatchFeedId,"x(6)") +
String(vh-BatchSeqNum,"x(6)") + String(vh-RecType,"x(4)") +
String(vh-Tsys,"x(30)") + String(vh-TransId,"x(8)") +
String(vh-FillerA,"x(2700)").
Output Stream strmHELPL To Value(file-out).
Put Stream strmHELPL UnFormatted f-strTmp.
Output Stream strmHELPL Close.
__________________________________________________________
Thanks,
Carrie Jandura
