View previous topic :: View next topic
|
Author |
Message |
deb_parthas
New User
Joined: 24 Nov 2005 Posts: 18
|
|
|
|
Hi,
We have a set of DB2 subprograms which in turn is calling assembler routine to print some reports. We are not aware of how assember code works and how to check the reports. The JCL which executes the main program created 2 reports ( 2 DDs in JCL) but these are not getting updated by the Assember routine.
What will be the quick way to find which file/report gets created by an assember program?
Thanks, |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
deb_parthas wrote: |
... but these are not getting updated by the Assember [sic] routine.
What will be the quick way to find which file/report gets created by an assember [sic] program? |
Why do you think some report is (or perhaps is not) created or updated by an Assembler program?
You apply the same analysis to validate a report from an Assembler program as for any report created by any other computer language. There is no "quick way."
Reading between the lines, I have to wonder if you even have the source for this alleged Assembler program. Are you also wondering how you can determine if some program (of some presumably unknown source language) creates a report? |
|
Back to top |
|
|
deb_parthas
New User
Joined: 24 Nov 2005 Posts: 18
|
|
|
|
I see a FILLER (which comes as part of the header) and which I updated with a new value being passed while calling the assembler routine. The call is something like below
CALL TDPRT-NAME using TDPRT-FUNC-CODE REP026-REPORT REP026-HEADINGS BLOCK-LENGTH
The group variable EP026-HEADINGS contains the field I am updating. TDPRT-NAME variable contains the program TDPRT00 which is an assember routine. The routine TDPRT00 in turn calls another assembler routine TDPRT01 to print the report (although I didnt understand the code, the text/documentation inside the routine says so). Need to find out the below
1) Which piece of code in TDPRT00 is calling TDPRT01
2) Is program TDPRT01 really printing the report. If yes, how?
3) Which part of the code is performing the same.
There seems to be commands DSECT, DS, CSECT etc for file handling. |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
deb_parthas wrote: |
I see a FILLER (which comes as part of the header) and which I updated with a new value being passed while calling the assembler routine. The call is something like below
CALL TDPRT-NAME using TDPRT-FUNC-CODE REP026-REPORT REP026-HEADINGS BLOCK-LENGTH
... |
All of this appears to be Cobol.
deb_parthas wrote: |
... There seems to be commands DSECT, DS, CSECT etc for file handling. |
These appear to be "Assembler instructions." Assembler instructions do not do anything at all. An Assembler program that prepares a report may have instructions like OPEN, CLOSE, PUT and DCB, with a variety of machine instructions to prepare the data areas that will be part of the report. I say "may" because it can use subroutines to actually create a report.
deb_parthas wrote: |
I see a FILLER (which comes as part of the header) and which I updated with a new value ... |
I'm not a Cobol programmer, but I do not think you can update a FILLER area. |
|
Back to top |
|
|
|