Timestamp without using a language in JCL.

JES2/3, JCL, utilities.
Post Reply
Dipak Dhoble
New Member
Posts: 5
Joined: Mon Jul 21, 2014 12:23 pm

Timestamp without using a language in JCL.

Post by Dipak Dhoble »

Hi,

I'm looking for the suggestion using which I can create create a member with the system-Date and the Time. I can not use ICETOOL. Can I use some other utility to do this?
The date and time should be in yymmdd and hh:mm formats respectively.

Thanks for any help on this.
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Timestamp without using a language in JCL.

Post by Anuj Dhawan »

Dipak,

With SORT, this should help you:

Code: Select all

//STEP01    EXEC PGM=SORT
//SORTIN   DD   *
  
/*
//SORTOUT  DD   DISP=SHR,DSN=YOUR.PDS(MEMBER1)
//SYSOUT   DD   SYSOUT=*
//SYSIN    DD   *
  INREC FIELDS=(DATE1,X,TIME)
  OPTION COPY
  OUTREC FIELDS=(3,6,X,10,5)
/*
//*
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Dipak Dhoble
New Member
Posts: 5
Joined: Mon Jul 21, 2014 12:23 pm

Re: Timestamp without using a language in JCL.

Post by Dipak Dhoble »

Thanks Anuj, this is working as required.
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Timestamp without using a language in JCL.

Post by Anuj Dhawan »

Great, thanks for the feedback.
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: Timestamp without using a language in JCL.

Post by nicc »

Of course ICETOOL is part of Sort (or the other way around)!
Regards
Nic
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “JCL - Job Control Language.”