Page 1 of 1

About Sync mode and sysin mode

PostPosted: Wed Jan 16, 2008 5:44 pm
by ronmathew
can anyone tell me about Sync mode and sysin mode....whether its used in COBOL?? or DB2

Re: SYNC MODE

PostPosted: Thu Jan 17, 2008 12:45 am
by dick scherrer
Hello,

Please clarify your question.

There are multiple situations where "sync" might apply and i am not familiar with "sysin mode".

Re: About Sync mode and sysin mode

PostPosted: Mon Jan 21, 2008 1:14 pm
by ronmathew
[quote][/quote]

I know there is sync clause used in cobol...i want to know if there is something like sync mode used in db2?
i am not sure about it,does it mean that the user cannot use the database anymore if it is sync mode??
And same way there is sysin mode too?

Re: About Sync mode and sysin mode

PostPosted: Wed Jan 23, 2008 2:12 pm
by nikhilgalgate
Hi ronmathew,

ronmathew wrote:can anyone tell me about Sync mode


SYNC clause is specified with COMP, COMP-1 and COMP-2 items. These items are expected to start at half/full/double word boundaries for faster address resolution. SYNC clause does this but it may introduce slack bytes (unused bytes) before the binary item.

01 WS-TEST.
10 WS-VAR1 PIC X(02).
10 WS-VAR2 PIC S9(6) COMP SYNC.

Assumes WS-TEST starts at relative location 0 in the memory, WS-VAR1 occupies zero and first byte. WS-VAR2 is expected to start at second byte. As the comp item in the example needs one word and it is coded with SYNC clause, it will start only at the next word boundary that is 4th byte. So this introduces two slack bytes between WS-VAR1 and WS-VAR2.


Hope above explaination gives you clear idea about SYNC in COBOL. :geek:

Re: About Sync mode and sysin mode

PostPosted: Wed Jan 23, 2008 2:18 pm
by nikhilgalgate
I apologize, thought you were asking about SYNC clause.