Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Open load in view/edit mode to read timestamp

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
lanand_hps

New User


Joined: 05 Dec 2007
Posts: 82
Location: chennai

PostPosted: Tue Oct 06, 2009 11:29 am    Post subject: Open load in view/edit mode to read timestamp
Reply with quote

Hi,
My requirement is to open the load file using a macro and get the timestamp.
Files with RECFM=U attributes always open in browse mode i guess and using macros do not go with browse operation.
ISREDIT F ALL command also does not work when the file is in browse mode.
Please give your thoughts.

Thanks,
Anand
Back to top
View user's profile Send private message

prino

Active Member


Joined: 07 Feb 2009
Posts: 982
Location: Oostende, Belgium

PostPosted: Tue Oct 06, 2009 12:35 pm    Post subject:
Reply with quote

My thoughts?

Another twit with a unexplained requirement trying to do something without using the proper tools...
Back to top
View user's profile Send private message
Srihari Gonugunta

Active User


Joined: 14 Sep 2007
Posts: 295
Location: Singapore

PostPosted: Tue Oct 06, 2009 12:50 pm    Post subject:
Reply with quote

Anand,
Start with AMBLIST utility to extract the timestamp.
I don't think you can acheive it by directly reading the load module.
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 258

PostPosted: Tue Oct 06, 2009 2:47 pm    Post subject:
Reply with quote

If you browse the member and issue the HEX On command . You will be able to see the date . It is a field 3 bytes long and looks something like this:

030
41F

day 310 year 2004
Back to top
View user's profile Send private message
Srihari Gonugunta

Active User


Joined: 14 Sep 2007
Posts: 295
Location: Singapore

PostPosted: Tue Oct 06, 2009 3:03 pm    Post subject:
Reply with quote

Agreed. But thats manual stuff.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Oct 06, 2009 3:06 pm    Post subject:
Reply with quote

Just as an aside, REXX is unable to handle RECFM=U or RECFM=VBS datasets.
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 258

PostPosted: Tue Oct 06, 2009 5:06 pm    Post subject:
Reply with quote

Quote:
But thats manual stuff.
True my point was just that if the data is there and can be obtained manually it must be possible to automate the process.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Tue Oct 06, 2009 7:29 pm    Post subject: Reply to: Open load in view/edit mode to read timestamp
Reply with quote

Quote:
True my point was just that if the data is there and can be obtained manually it must be possible to automate the process.


Basically true, but you have to start out by using a process that can be automated. You cannot automate it using Browse.
Back to top
View user's profile Send private message
lanand_hps

New User


Joined: 05 Dec 2007
Posts: 82
Location: chennai

PostPosted: Wed Oct 07, 2009 10:16 am    Post subject:
Reply with quote

My requirement is to check if my code is in sync with production code.
(Like audit package option in changeman, I wanted an option in endevor. Posted in CA forum. no replies yet).
As an alternate way, i thought of writing a tool which will trigger daily job to check if the load timestamp has changed. Seems it is not possible to check it in brose mode.

Thanks for your thoughts frnds..
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Wed Oct 07, 2009 7:35 pm    Post subject: Reply to: Open load in view/edit mode to read timestamp
Reply with quote

Quote:
Seems it is not possible to check it in brose mode.

Correct, it is not possible in brose mode, nor is it possible in Browse mode.

But you can do it with AMBLIST and using VIEW to examine the AMBLIST output.

You have to have the expected results first, before you can know if the date changed. And if you are going that far already, you might as well see if the size of the module changed.
Back to top
View user's profile Send private message
kgrimes

New User


Joined: 28 Sep 2009
Posts: 22
Location: Columbia, SC

PostPosted: Tue Oct 13, 2009 12:01 am    Post subject: Reply to: Open load in view/edit mode to read timestamp
Reply with quote

The Endevor footprint extract program (BC1PFOOT) can be used to extract Endevor footprints from an Endevor footprinted dataset. See the Endevor Footprints guide for more information.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Oct 13, 2009 12:20 am    Post subject:
Reply with quote

/lightly aggressive on/

Quote:
My requirement is to check if my code is in sync with production code


it is either production code or it is not production code.
if it is your code, it is not production code.

If you want to insure that what you are executing is production code,
execute production code

this complete exercise is a waste of time;
the only reason the poster feels the need for this 'check'
is because the poster does not understand Production-code-control.

I have worked in shops where the source was the only thing
that was moved to the production environment.
There everything was again compiled/linked/bound (if db2).
so, timestamps were useless when attempting to compare to 'test'.

the only way to insure that 'your code' is in-sync with 'production code'
is to use production code, and only change what you have to change.

/lightly aggressive off/
Back to top
View user's profile Send private message
kgrimes

New User


Joined: 28 Sep 2009
Posts: 22
Location: Columbia, SC

PostPosted: Tue Oct 13, 2009 12:53 am    Post subject: Reply to: Open load in view/edit mode to read timestamp
Reply with quote

The original request was looking for a method to read an Endevor footprint from an Endevor controlled load module.
Quote:
My requirement is to open the load file using a macro and get the timestamp.

Therefore one could use the Endevor utility to compare Endevor footprints and determine if the production code has been modified.

Regards,
Kevin

[/quote]
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Tue Oct 13, 2009 1:46 am    Post subject: Reply to: Open load in view/edit mode to read timestamp
Reply with quote

Quote:
The original request was looking for a method to read an Endevor footprint from an Endevor controlled load module.


Strange, no one mentioned Endevor except you.

> I stand corrected... did not read the thread well
Back to top
View user's profile Send private message
kgrimes

New User


Joined: 28 Sep 2009
Posts: 22
Location: Columbia, SC

PostPosted: Tue Oct 13, 2009 2:17 am    Post subject: Reply to: Open load in view/edit mode to read timestamp
Reply with quote

I'm new to the IBM Mainframe forum and I was just trying to help someone who had a question. Not trying to cause any trouble...
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Oct 13, 2009 7:47 pm    Post subject:
Reply with quote

Hello,

Quote:
Not trying to cause any trouble...
You caused no trouble icon_smile.gif
As mentioned, 'twas just a misunderstanding.

Please continue. . .
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Tue Oct 13, 2009 9:38 pm    Post subject: Reply to: Open load in view/edit mode to read timestamp
Reply with quote

Quote:
Not trying to cause any trouble...


I was not trying to cause any trouble either. :-) Just a misunderstanding.

Welcome to the forum.
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts CICS VSAM RLS READ akodakka CICS 3 Tue Oct 04, 2016 3:09 pm
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm
No new posts Copybook structure in Load module Vai123 COBOL Programming 7 Fri Sep 16, 2016 8:29 pm
This topic is locked: you cannot edit posts or make replies. ERROR WHILE SUBMITTING LOAD JOB ANURADHA NEELAKANTAN JCL & VSAM 12 Thu Aug 25, 2016 11:50 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us