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
 

 

Increase the time for each record of a NOMAD program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
Manikandan K

New User


Joined: 29 Mar 2007
Posts: 12
Location: Tamilnadu

PostPosted: Thu May 17, 2007 11:40 am    Post subject: Increase the time for each record of a NOMAD program
Reply with quote

Hi,

Beccause of a NOMAD program, current date and time is included in all records of the output file. because of this there is removal of records in another program's output, which uses the previous output file as input.

i need to increase the time for each record in the first program through the code. i tried declaring a temporary variable and increased the time by the following .
&CTIME=&CTIME+1
where &CTIME,temporary variable, is declared as hh:mm:ss format.

but there is no change iin output.

could you please help with any other idea.
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: Thu May 17, 2007 7:23 pm    Post subject:
Reply with quote

Hello,

I'd suggest you create a new little NOMAD program and test the date/time arithmetic you want to do. Once you have figured out the way to do it, put that code in the "real" program.
Back to top
View user's profile Send private message
Manikandan K

New User


Joined: 29 Mar 2007
Posts: 12
Location: Tamilnadu

PostPosted: Fri May 18, 2007 9:11 am    Post subject: Re: Increase the time for each record of a NOMAD program
Reply with quote

Dick,

The following is my logic in the program.

*declaring a variable &CTIME
*Defining &UTIME TIME in 'hh:mn:ss'
*moving &UTIME to &CTIME
*then, during processing of each record &CTIME=&CTIME+1

but this will increse the one in all the hh:mn:ss.
i need to incresa the second alone .....

for this how can i nicrease it.....
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: Fri May 18, 2007 7:21 pm    Post subject:
Reply with quote

Hello,

For working out something like this, i suggest using a small bit of code that is only for testing your requirement. With no other program logic to interefere, you can try various alternatives until you find sone that does what you want.

I have none of the NOMAD material here. If you do not have the documentation, i'd suggest you contact NOMAD support as they will tell yo how to get it.

This
Quote:
*declaring a variable &CTIME
*Defining &UTIME TIME in 'hh:mn:ss'
*moving &UTIME to &CTIME
. .&CTIME=&CTIME+1
may work, but i do wonder why the field you are incrementing is not defined as time also. If you are incrementing some numeric variable, how would NOMAD know to later use it as a date?
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Record Not found in AlX but record re... mukun264 COBOL Programming 7 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm


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