IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Shift in one byte for report created


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rahulcherekar

New User


Joined: 20 Feb 2007
Posts: 16
Location: New York

PostPosted: Thu Mar 03, 2011 3:07 am
Reply with quote

Hi,

I am doing IDMS to DB2 conversion on one of our programs. Code changes and testing look good. Even all output files are matching exactly except I see one byte shift in the report created.

IDMS run: Program CB2-IDMS-DB2; AMODE/RMODE default

Report is starting from 2nd column.

DB2 run: Program COB390/DB2/AMODE/RMODE 24

Report is starting from 3rd column.

Thanks,
Rahul.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Mar 03, 2011 3:21 am
Reply with quote

printer control char in the first position ???
Back to top
View user's profile Send private message
rahulcherekar

New User


Joined: 20 Feb 2007
Posts: 16
Location: New York

PostPosted: Thu Mar 03, 2011 3:22 am
Reply with quote

It is present in both the reports.

Thanks,
Rahul.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Mar 03, 2011 3:41 am
Reply with quote

Hello,

Suggest you create a very small test program that "prints" only the report headers from the problem program.

Then compile this both ways and run it. Then look at the new outputs.

How is the report dd defined in the JCL for each run? How long is the "print record" defined in the code?

Vaguely, i recall some situations where an extra byte was added depending on some combinatoin of code/jcl. Unfortunately, i don't remember the specifics.

Amode/Rmode should not be a factor, but the compiler upgrade may be.
Back to top
View user's profile Send private message
rahulcherekar

New User


Joined: 20 Feb 2007
Posts: 16
Location: New York

PostPosted: Thu Mar 03, 2011 3:49 am
Reply with quote

Hi,

Will try the first suggestion by creating a small test program/report. There is no change in report DD definition in both the JCLs. The report is defined to have 133 bytes in code.

Thanks,
Rahul.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Mar 03, 2011 3:55 am
Reply with quote

Compiler option ADV automatically adds 1 byte (for carriage control) to records when WRITE ... AFTER ADVANCING is used. If it was used for one program but not the other, that could impact the output.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Mar 03, 2011 4:14 am
Reply with quote

Hello,

It sounds like the code allowed for a filler (even if it was not coded as FILLER) in the first byte (for carriage control) and then 132 for the "report". The execution added the carriage control before the filler which "slid" everything over.
Back to top
View user's profile Send private message
rahulcherekar

New User


Joined: 20 Feb 2007
Posts: 16
Location: New York

PostPosted: Thu Mar 03, 2011 4:41 am
Reply with quote

Yes Rob. The DB2 code is compiled with NO ADV option and IDMS is compiled with ADV option and hence one extra byte in report created from IDMS run.

Thanks all for your valuable suggestions.

Thanks,
Rahul.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts 10 byte RBA conversion DB2 2
No new posts 10 byte RBA conversion -non applicati... JCL & VSAM 1
No new posts Shift left VB record without x00 endi... DFSORT/ICETOOL 11
No new posts Need help on formatting a report DFSORT/ICETOOL 14
Search our Forums:

Back to Top