How to "sleep" in mainframe COBOL? - cobol

I think I'm using Enterprise COBOL for z/OS.
What's a technique to emulate the functionality of, for example, the standard C library's sleep() function?

Probably the easiest method is to use the Language Environment callable service CEE3DLY or CEEDLYM.

I don't know whether you have found your answer or not.
There is an IBM program that enables the machine to sleep ... or to wait : its name is ILBOWAT0.
Here is the link of a very good example on how you can code it : http://www.mvsforums.com/helpboards/viewtopic.php?t=2008&highlight=delay
In this example, WAIT-TIME is in seconds.

Related

How to serialize an function?

There is a way to serialize/deserialize a function inside an obj-c application?
I the near future i need to change the function's implementation without update my executable.
I know there isn't a way to serialize a function pointer / nsoperation / block so i'm looking for an alternative way...maybe can i include a python interpreter inside my app and download a script from websever?
Per the SDK licence agreement, you're not permitted to download any code whatsoever — it's a thin-end-of-the-wedge issue versus Apple's desire to vet all applications.
In technical terms, you'd need to include Python or LUA or something like that. JavaScript is included but accessible only through a very awkward process of interaction with web views.

Language translator Delphi

I am busy with a project where I have to code a program in Delphi that will translate an English word to another language. What would be the easiest way to approach this? I was thinking about using Microsoft Translator V2 API from Delphi, but it seems very complicated and I am not yet that experienced in Delphi. Any other suggestions?
Thanks in advance :)
Thanks to RRUZ you can follow this article about Microsoft Translator V2 API implementation for Delphi; inluding the full (even speaking) example.
If you don't have to be self-contained, you could make a webservice call (soap, etc..) to the cloud (google, etc..). The nature of your app (is it a translation program? or do you just want to provide translation in another app, along with spellcheck, thesaurus, syntax highlight, etc..?) will determine whether this is feasible or not.

Communication between delphi application and Windows NT system driver

I am trying to build a very simple driver. Its sole purpose will be to register "PsSetCreateProcessNotifyRoutine" and on callbacks recieved from kernel, notify my Win32 application about which proccesses are started and stoped.
I only know how to build such a simple driver with "DriverEntry" and "DriverUnload" and compile it with DDK. But I don't know how to actually implement communication. I know it can be done with IOCTL. But beyond that I am in the dark. I cannot find simple example of how to do that in Delphi. I only know it can be done.
So what I am looking for is some simple and understandable tutorial on how to do it or event better an example delphi program with acompaniying driver code. Maybe there are even other ways of communication.
Any help would be appriciated.
Doesn't matter if in Delphi or not. You have to use the function DeviceIoControl. Read the article in MSDN about it.
In short, you'll have to choose some IOCTL codes from the available set. Then you call DeviceIoControl with one of these codes and pass some data, and in driver you handle that request and return something else.
You can also handle standard IOCTLS, such as the ones generated by calling ReadFile or WriteFile in user-mode.
Don't look for a "tutorial how to do that in Delphi", just look for any tutorial. They're all the same, no matter the language, it's pure Win32/Native api stuff. Here's one for example, just googled it out.

Is it possible to make system calls on iOS?

Is it possible to make a system call, such as executing ls -la, and use the result in your app?
Usually when someone says system call they mean calling into the kernel through one of the defined entry points. While its technically possible on iPhone, you are always better of going through the libSystem shims because the call interface is probably not stable (it isn't on Mac OS X for instance). I doubt Apple would like it if you did that, but I suspect no one as really thought about it much and they are unlikely to notice.
I don't think that is what you mean though. I think you want to use ISO/IEC 9899:1990 (C90) C libraray function "system". The answer to that is no, you can't.
Sadly syscall.h under iOS is a private api. While you can use it in private applications Apple will not allow you to use the syscall() API for App Store submissions unfortunately.

What platform/language does Roomba use?

Out of curiousity, does anybody know the platform and programming language used to program the Roomba? I'm not so much talking about aftermarket kits but what is used to implement the algorithm at the factory?
Per this link, Roomba's microcontroller is a Freescale (ex-Motorola) MC9S12E -- what iRobot specifically uses in terms of programming languages may be their trade secret, but I believe such devices are typically programmed in assembly and C, e.g. with this kit.
I was doing some dev work on a iRobot Create. I'm using WinAVR and the code is in C.
You can get a dev kit for under $300.00
http://store.irobot.com/shop/index.jsp?categoryId=3311368
The Linux Journal had an article about using Python with the iRobot Create which is based off the Roomba.
http://www.linuxjournal.com/article/10262
It may not be what they use in the factory, but it looks like it would be the best way to hack a Roomba-esque floor crawling bot.

Resources