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 Splitting of single report to seperat... abdulrafi TSO/ISPF 4 Mon Mar 27, 2017 3:59 pm
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm


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