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

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


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Tue May 08, 2007 9:33 pm
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
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

Moderator Emeritus


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

PostPosted: Wed May 09, 2007 7:28 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 0
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top