About Sync mode and sysin mode



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

About Sync mode and sysin mode

Postby ronmathew » Wed Jan 16, 2008 5:44 pm

can anyone tell me about Sync mode and sysin mode....whether its used in COBOL?? or DB2
ronmathew
 
Posts: 6
Joined: Mon Jan 14, 2008 3:51 pm
Has thanked: 0 time
Been thanked: 0 time

Re: SYNC MODE

Postby dick scherrer » Thu Jan 17, 2008 12:45 am

Hello,

Please clarify your question.

There are multiple situations where "sync" might apply and i am not familiar with "sysin mode".
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: About Sync mode and sysin mode

Postby ronmathew » Mon Jan 21, 2008 1:14 pm

[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?
ronmathew
 
Posts: 6
Joined: Mon Jan 14, 2008 3:51 pm
Has thanked: 0 time
Been thanked: 0 time

Re: About Sync mode and sysin mode

Postby nikhilgalgate » Wed Jan 23, 2008 2:12 pm

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:
nikhilgalgate
 
Posts: 9
Joined: Tue Dec 25, 2007 1:12 pm
Has thanked: 0 time
Been thanked: 0 time

Re: About Sync mode and sysin mode

Postby nikhilgalgate » Wed Jan 23, 2008 2:18 pm

I apologize, thought you were asking about SYNC clause.
nikhilgalgate
 
Posts: 9
Joined: Tue Dec 25, 2007 1:12 pm
Has thanked: 0 time
Been thanked: 0 time


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post