- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- use of synchronize in pipe command
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2009 02:39 AM
тАО02-06-2009 02:39 AM
I am trying to spawn a submit command and wait for the completion of the batch job from a C program. But for some reason I am unable to synchronize on the created batch entry. The following illustrates the problem from DCL.
$ sho sym $entry
%DCL-W-UNDSYM, undefined symbol - check validity and spelling
$ pipe submit/user=system t.com ; sho sym $entry ; sync/entr='$entry'
Job T (queue ITIV29_BATCH, entry 1085) started on ITIV29_BATCH
$ENTRY = "1085"
%DCL-W-VALREQ, missing qualifier or keyword value - supply all required values
$ sho sym $entry
$ENTRY = "1085"
$ sho entr 1085
Entry Jobname Username Blocks Status
----- ------- -------- ------ ------
1085 T SYSTEM Executing
On available batch queue ITIV29_BATCH
$
Any idea as to why the sync command doesn't get the value of the $entry symbol?
Thanks,
Oswald
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2009 03:11 AM
тАО02-06-2009 03:11 AM
Re: use of synchronize in pipe command
use the /symbol qualifier to preserve the symbols through the pipe.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2009 03:36 AM
тАО02-06-2009 03:36 AM
SolutionSAP01_Roh. pip/sym sub/noprint/keep sc:a.com ; sh sym $entry ; synch /ent=&$entry
Job A (queue SAP01_BAT_QUE_7_1, entry 127) started on SAP01_BAT_QUE_7_1
$ENTRY = "127"
Job A (queue SAP01_BAT_QUE_7_1, entry 127) completed
SAP01_Roh.
instead.
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2009 03:37 AM
тАО02-06-2009 03:37 AM
Re: use of synchronize in pipe command
According to help /symbol is default. Anyway i tried both pipe/symbol and pipe/nosymbol and the results are the same.
The weird thing is that the 'show symbol' command does show the $entry symbol while the 'sync' command apparently gets an empty string. Hence the VALREQ message.
Oswald
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2009 03:39 AM
тАО02-06-2009 03:39 AM
Re: use of synchronize in pipe command
Yes that's it. Thanks for your reply.
Still don't really understand as to what is happening here.
Oswald
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2009 03:58 AM
тАО02-06-2009 03:58 AM
Re: use of synchronize in pipe command
You have too use the & substitution:
; sync/entr=&$entry
and it will work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2009 04:03 AM
тАО02-06-2009 04:03 AM
Re: use of synchronize in pipe command
Yes that explains it. Thanks.
Oswald
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2009 04:05 AM
тАО02-06-2009 04:05 AM
Re: use of synchronize in pipe command
Take a look at chapter 12.13 in Users Manual.
http://h71000.www7.hp.com/doc/731final/6489/6489pro_033.html#syn_phases
It's about how/when DCL do symbol substitutions.
/Hakan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2009 04:08 AM
тАО02-06-2009 04:08 AM
Re: use of synchronize in pipe command
The explanation:
The ' ' symbol substitution happens in the early DCL parsing phase (of the PIPE command): its value (or not existence) is taken at the beginning of the pipe command, before anything is executed.
The & substitution happens a stage later, when the sync command is parsed: at that time the $entry symbol has already the new value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2009 04:09 AM
тАО02-06-2009 04:09 AM
Re: use of synchronize in pipe command
Thanks all.