IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Open load in view/edit mode to read timestamp


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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

Senior Member


Joined: 07 Feb 2009
Posts: 1314
Location: Vilnius, Lithuania

PostPosted: Tue Oct 06, 2009 12:35 pm
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
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: 262

PostPosted: Tue Oct 06, 2009 2:47 pm
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
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: 8796
Location: Welsh Wales

PostPosted: Tue Oct 06, 2009 3:06 pm
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: 262

PostPosted: Tue Oct 06, 2009 5:06 pm
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

Global Moderator


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

PostPosted: Tue Oct 06, 2009 7:29 pm
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
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

Global Moderator


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

PostPosted: Wed Oct 07, 2009 7:35 pm
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
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
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
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

Global Moderator


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

PostPosted: Tue Oct 13, 2009 1:46 am
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
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

Moderator Emeritus


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

PostPosted: Tue Oct 13, 2009 7:47 pm
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

Global Moderator


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

PostPosted: Tue Oct 13, 2009 9:38 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts MF professionals open positions Mainframe Jobs 0
No new posts Unload and Load ISPF Table TSO/ISPF 4
No new posts SPOOL to Mainframe dataset in batch mode JCL & VSAM 7
No new posts Inserting into table while open selec... DB2 1
No new posts HILITE on Browse mode? TSO/ISPF 2
Search our Forums:

Back to Top