How to insert 0000 value in a blank file

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
anksrock
Member
Posts: 1
Joined: Thu Nov 20, 2014 3:24 pm

How to insert 0000 value in a blank file

Post by anksrock » Thu Nov 20, 2014 3:26 pm

I need to check whether file is blank or not which I can do using IDCAMS.
after finding the file is blank I have to insert 0000 in that file.

Please advise
Thanks and Regards
Ankur
Ankur bansal

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Thu Nov 20, 2014 8:20 pm

Set up the record you want in another dataset and REPRO it once you know you need to.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others