Posted: Thu Jun 05, 2003 9:53 am Post subject: Inserting a record into an empty dataset
I need to insert a single record into a newly created dataset. The format of the record is fixed - it consists of two fields, a 30 byte field to be filled with zeroes and an 8-byte date field to contain system date. It is up to me to decide upon the way to go about it.
Although this can be done using a simple COBOL program or better still a REXX one, I'd like to know whether it is possible to get it done using any utility, say DFSORT? How does one pass the system date in that case?
Cheers
30C'0' will give you 30 character zeros. If you want binary zeros, use 30X'00' or 30Z.
DATE1 will give you a character date of 'yyyymmdd'. DATE1(/) will give you a character date of 'yyyy/mm/dd'. Other DATEn and DATEn(c) parameters are available as well as discussed in the "How can I put timestamps in my output records?" Ask Professor Sort item at:
n should be the LRECL you want for your output data set. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Last edited by Frank Yaeger on Fri Aug 25, 2006 5:54 pm; edited 1 time in total
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum