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

Validation of reports generated in Assember code


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
deb_parthas

New User


Joined: 24 Nov 2005
Posts: 18

PostPosted: Wed Jul 30, 2014 3:18 pm
Reply with quote

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
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Wed Jul 30, 2014 3:59 pm
Reply with quote

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
View user's profile Send private message
deb_parthas

New User


Joined: 24 Nov 2005
Posts: 18

PostPosted: Wed Jul 30, 2014 4:17 pm
Reply with quote

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
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Wed Jul 30, 2014 4:50 pm
Reply with quote

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
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 -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Monitoring production job progress. N... JCL & VSAM 4
Search our Forums:

Back to Top