Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How can I identify whther the file is empty or not

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
rambabu
Currently Banned

New User


Joined: 18 Apr 2005
Posts: 67

PostPosted: Mon Jun 13, 2005 2:48 pm    Post subject: How can I identify whther the file is empty or not
Reply with quote

how can i identify whther the file is empty or not?u tell me in both cases vsam and flat file?
Back to top
View user's profile Send private message

ideas

New User


Joined: 25 May 2005
Posts: 53
Location: India

PostPosted: Mon Jun 13, 2005 3:01 pm    Post subject:
Reply with quote

use IDCAMS for this.
Back to top
View user's profile Send private message
Sangita

New User


Joined: 02 Jun 2005
Posts: 17

PostPosted: Mon Jun 13, 2005 4:21 pm    Post subject: Re: vsam file empty?
Reply with quote

Hi Ram,

You can use IDCAMS for the VSAM files or you check in the
DSLIST (3.4 OPT) ,%USED will be 0 for empty files.

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

DFSORT Moderator


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

PostPosted: Mon Jun 13, 2005 9:16 pm    Post subject:
Reply with quote

You could use DFSORT's ICETOOL to do that as described in this Smart DFSORT Trick:

http://www.ibm.com/servers/storage/support/software/sort/mvs/tricks/srtmst03.html#t10
Back to top
View user's profile Send private message
ideas

New User


Joined: 25 May 2005
Posts: 53
Location: India

PostPosted: Wed Jun 15, 2005 6:27 pm    Post subject:
Reply with quote

Hi Frank & Ram,

this is the outline..how IDCAMS can be used:

Step 1: copy the file to a temp file using IDCAMS utility
If file empty this step may throw a RC 08,
Set MAXCC = 04, if it greater than 00.

Step 2: Check the condition, if the RC of previous step is NOT equal to 00, bypass the step.

Thanks.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 8 Fri Sep 22, 2017 11:35 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts editting the file by inserting zeros ... pramodrsingh DFSORT/ICETOOL 9 Mon Aug 21, 2017 5:58 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us