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

Sort to get DSN statistics?


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sarat6900

New User


Joined: 02 Mar 2009
Posts: 12
Location: India

PostPosted: Wed Nov 04, 2009 1:41 pm
Reply with quote

Hi All,

There are some files transferred from mainframe
A DSN would XXXX.FILES.TRANSFERED will have the DSN’s that are transferred.

XXXXX.TEST.FILE1
XXXXX.TEST.FILE2
XXXXX.TEST.FILE3
XXXXX.TEST.FILE4
XXXXX.TEST.FILE5
XXXXX.TEST.FILE6
XXXXX.TEST.FILE7
XXXXX.TEST.FILE8
XXXXX.TEST.FILE9


Is it possible to write a statistics file using SORT in the format? (get LRECLs of each file?)
Bytes- LRECL* count

FILE NAME XXXXX.TEST.FILE1 LRECL nnnn COUNT 00000nnnn BYTES 0000000nnnnn
FILE NAME XXXXX.TEST.FILE2 LRECL nnnn COUNT 00000nnnn BYTES 0000000nnnnn
FILE NAME XXXXX.TEST.FILE3 LRECL nnnn COUNT 00000nnnn BYTES 0000000nnnnn
FILE NAME XXXXX.TEST.FILE4 LRECL nnnn COUNT 00000nnnn BYTES 0000000nnnnn
FILE NAME XXXXX.TEST.FILE5 LRECL nnnn COUNT 00000nnnn BYTES 0000000nnnnn
FILE NAME XXXXX.TEST.FILE6 LRECL nnnn COUNT 00000nnnn BYTES 0000000nnnnn

Please advice.

Thanks,
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Nov 04, 2009 1:58 pm
Reply with quote

Can you explain exactly what it is that you want to know, and the reason why and maybe the forum members can come up with proven methods.
Back to top
View user's profile Send private message
sarat6900

New User


Joined: 02 Mar 2009
Posts: 12
Location: India

PostPosted: Wed Nov 04, 2009 3:25 pm
Reply with quote

Hi,

Is it possible to retrieve the LRECL info of the DSN through sort?

The input file would have the DSN's transferred.

The output file is a sequential report of the transferred files

FILE NAME XXXXX.TEST.FILE1 LRECL nnnn COUNT 00000nnnn BYTES 0000000nnnnn

Please let me know if the requirement is clear.

Thanks,
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Nov 04, 2009 11:06 pm
Reply with quote

Quote:
Is it possible to retrieve the LRECL info of the DSN through sort?


Sort products do NOT have any built-in features for displaying the LRECL.
(The LRECL is displayed in the sort messages, but I don't think that will help for what you're trying to do.)
Back to top
View user's profile Send private message
sarat6900

New User


Joined: 02 Mar 2009
Posts: 12
Location: India

PostPosted: Mon Nov 09, 2009 10:38 am
Reply with quote

Thank You Frank.

Is there another way to implement this.
I understand Rexx solution for this would consume more CPU than Cobol.

Cobol processing would involve a lot of duplicate processing ( same process repeated for all the files transferred).

Is there any alternate solution for this?

Thanks,
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: Mon Nov 09, 2009 8:30 pm
Reply with quote

Hello,

Anything done will need the "same process repeated for all the files transferred". . . If you want info for 1000 files, you need to "look at" 1000 files. . .

This is mostly unneeded info (IMHO as i've been involved with more than 100 different systems that send/receive many files and not one of them needs this).

REXX is probably the worst possible "solution".

I suspect that the transfer provides the info as to record counts and byte counts as well as the dataset name. Why does lrecl even matter?
Back to top
View user's profile Send private message
Ronald Burr

Active User


Joined: 22 Oct 2009
Posts: 293
Location: U.S.A.

PostPosted: Mon Nov 09, 2009 9:15 pm
Reply with quote

If you are looking to validate successful file transfers, you might want to think twice about using a process that counts bytes and checks LRECLS - because, depending on the protocols used the LRECL and number of actual bytes contained in a Sending File and that of the Receiving File may not match.

For example, you can Send a Fixed Length Mainframe File to a (truncated(with trailing spaces stripped), variable length ) PC file with CR/LF codes or send a (variable length, no trailing spaces) CR/LF coded PC file to a Fixed Length Mainframe File (with trailing spaces generated to fill out the fixed length).

As a prior responsant suggested, explain what the objective is, and don't try to limit responses to how to satisfy the requirements of the method you have pre-determined is the only way to achieve the objective. Many here have probably already formulated methods to achieve your objective in a much more robust manner.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
Search our Forums:

Back to Top