Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Shift in one byte for report created

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Shift in one byte for report created
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Thu Mar 03, 2011 3:21 am    Post subject: Reply to: Shift in one byte for report created
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    Post subject:
Reply with quote

It is present in both the reports.

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

Site Director


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

PostPosted: Thu Mar 03, 2011 3:41 am    Post subject:
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    Post subject:
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Thu Mar 03, 2011 3:55 am    Post subject:
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

Site Director


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

PostPosted: Thu Mar 03, 2011 4:14 am    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts Report cost in CA-dispatch Nileshkul CA Products 3 Wed Jun 07, 2017 10:32 pm
No new posts Splitting of single report to seperat... abdulrafi TSO/ISPF 7 Mon Mar 27, 2017 3:59 pm
No new posts Easytrieve report shalem CA Products 4 Sun Feb 26, 2017 9:08 am
No new posts 2 byte YEAR from Y'DATE2' field tecnokrat DFSORT/ICETOOL 2 Tue Feb 07, 2017 12:05 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us