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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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