View previous topic :: View next topic
|
Author |
Message |
sheepingux
New User
Joined: 21 Oct 2006 Posts: 4 Location: argentina
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Welcome to the forums
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 |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|