Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
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
 
Validation of reports generated in Assember code

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: Validation of reports generated in Assember code
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: 563
Location: The Universe

PostPosted: Wed Jul 30, 2014 3:59 pm    Post subject: Re: Validation of reports generated in Assember code
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    Post subject:
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: 563
Location: The Universe

PostPosted: Wed Jul 30, 2014 4:50 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts I want to retire TRX and use only Rex... Abhinav Sharma CLIST & REXX 6 Sat Jul 29, 2017 2:53 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm

Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us