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 Usergroups Profile Log in to check your private messages Log in
 

 

How do i can a report? after FTPing a file to server

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
sheepingux

New User


Joined: 21 Oct 2006
Posts: 4
Location: argentina

PostPosted: Tue May 08, 2007 8:31 pm    Post subject: How do i can a report? after FTPing a file to server
Reply with quote

hi, from argentina, my english is bad.

I have a some jobs which have 2 steps.

Step 1: Put file to server (FTP)
Step 2: Generate a report

Example:

Code:
Step 1 put N files : File 1, File2, ...., FileN
Step 2: Report
           File 1: n records transmited
           File 2: n records transmited
           File N: n records transmited           

thanks

My problem is in the Step 2. how do i can generate the report?
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: Tue May 08, 2007 9:33 pm    Post subject:
Reply with quote

Welcome to the forums icon_smile.gif

Please post the jcl from the job(s) that transmit the files as well as the output from a test run of one of those jobs.
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Wed May 09, 2007 10:56 am    Post subject:
Reply with quote

I think of a simple approach to generate your report.

After step 1 (FTP step): Check the Return code of the FTP step if RC = 0 then it means records were transmitted succesfully.

In the next step use a SORT utility to get record count of each files File1,File 2 .. File N
And then finally display the record count.
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: Wed May 09, 2007 7:28 pm    Post subject:
Reply with quote

Hello,

My intent was to capture the output from the the ftp and use that to create the report.

When we see the jcl and the queued output, we may be able to get the needed info without needing to pass the files again. Also, a non-zero return code does not mean that all of the files had problems.
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts Liberty Angel Server using RACF Keyring martin9 CICS 0 Tue May 02, 2017 5:49 pm
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


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