Cobol has alignment too. You just dont see it. All storage is aligned.
Joe On Sun, Jul 5, 2020 at 10:24 AM Nguyen Dt <[email protected]> wrote: > Thank you all for your inputs, > > I am over the problem now. > In fact what i tried to do is to Move some fields to my output fields and > then write it as a report. (It is a Db2 performance report, the input are > from the trace buffers with the macros given by Db2 libraries) > > So my program is roughly like this > READ Buffer on QW... variables > > MVC OW...,QW... > > > OW... are the output fields i defined it exactly as in the DSECT got from > the macros. > As it is an output field, the position is important (and it is why i > detected a problem in the positions of my fields) > Its is OK now with OW... variables defined as characters CLx > > (PS: When i use NOALIGN , the program abends at execution ...) > > As i learn assembler "on the flight" , there is some important things that > i don' t understand , such as the alignment .... This is something we don't > care in cobol , rexx .... Can you tell me why assembler has the alignment > in words that are easy to understand and visualize in my little head ? > > Thank you again. > Duc > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
