View previous topic :: View next topic
|
Author |
Message |
bbharathiraj Warnings : 1 New User
Joined: 26 Oct 2006 Posts: 50 Location: Chennai
|
|
|
|
Hi All,
Please find my requirement below.
I have one PS file (Recfm=FB,LrecL=80).It?s needs to be processed only if the file have at least one record say at step 2. If not I have to process the next step says Step3. So I need to check whether the file is empty or not at step1. Is possible to do this by using SORT?.
I know we can do it by file aid by checking the return code 8. But I am expecting millions of records in this file. So to improve the performance, I want to implement this by using SORT.
Could any one have a idea about this?
Thanks in advance,
Bharathiraj |
|
Back to top |
|
|
hariavinash
New User
Joined: 04 Jan 2006 Posts: 64
|
|
|
|
using IDCAMS
PRINT INFILE(FILE01) CHARACTER COUNT(1) |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
Back to top |
|
|
bbharathiraj Warnings : 1 New User
Joined: 26 Oct 2006 Posts: 50 Location: Chennai
|
|
|
|
Thanks you very much. |
|
Back to top |
|
|
|