对于RPG,存在相当直接的机制,所以我可以写如下:
ctl-opt debug decedit('.') datedit(*dmy/)
option(*srcstmt) bnddir('SOMEBND')
alwnull(*usrctl)
dftactgrp(*no) actgrp(*caller)
main(main);
如何为ILE C / C ++源编写相同的设置?
或者我应该在安装程序CRTBNDCPP
语句参数中的某处写它?
答案 0 :(得分:1)
在ILE C中,您可能总是首先创建一个模块(CRTCMOD),然后创建程序(CRTPGM)。您可以将所有需要的参数传递给compile / create命令。
答案 1 :(得分:0)
我在i上没有C专家,但是......
BNDDIR
CRTBNDCPP
命令set FinsihDate to (current date) + 10 * hours + 30 * minutes
set startingDate to (current date)
set plistR to {FinsihDate:FinsihDate, starteddate:current date}
tell application "System Events"
set plistf to make new property list file ¬
with properties {name:"~/Desktop/MY_Time.plist"}
set plistf's value to plistR
end tell
## Email
property lastWindowID : missing value
tell application "Mail"
set windowIDs to id of windows
if windowIDs does not contain lastWindowID then
set newMessage to make new outgoing message with properties {subject:"Started early", content:"Hi ..., \n \nI started early today : " & (current date) & ", I will leave at " & FinsihDate & "\n \nKind Regards,\nKevin " & return & return}
tell newMessage
set visible to true
make new to recipient at end of to recipients with properties {name:"Name", address:"@apple.com"}
end tell
activate
set lastWindowID to id of window 1
else
tell window id lastWindowID
set visible to false
set visible to true
end tell
activate
end if
end tell
set startDate to date (current date)
set endDate to date FinsihDate
tell application "Calendar"
tell (first calendar whose name is "calendar")
make new event at end of events with properties {summary:"Work", start date:startDate, end date:endDate, description:"ITS Fraud Prevention", location:"Apple"}
end tell
end tell
上没有set myTime to (time string of (current date)) + 10 * hours + 30 * minutes
parmaeter。答案 2 :(得分:0)
看来你对这些选项的含义有点困惑。其中有几个是RPGLE
特定的:debug
,datedit
,option
,alwnull
,dftactgrp
和main
没有等价物到C/C++
。我不认为有任何C/C++
语法可以直接在源中指定激活组或绑定目录。
答案 3 :(得分:0)
@David G:CRTBNDRPG也没有BNDDIR参数。我认为这确实是缺失和需要的。也是f的OPTION参数。即* CRTBND ...编译命令缺少DUPPROC。