setting up PRINTER.ID
- nbetty
- Topic Author
- Offline
- Junior Member
- Posts: 26
- Thank you received: 0
Hope all is well, i am trying to setup PRINTER.ID so that it can print the report and then copy it to a different folder in bnk.run but the command is not working. i have set my command field as SH -c "cp ../bnk.data/eb/'&HOLD&'/&HOLD.CONTROL>@ID& >> .../bnk.run/LIMIT.BP".Please help.
Thank yo
Please Log in or Create an account to join the conversation.
- jpb
- Offline
- Moderator
- retired
- Posts: 2859
- Thank you received: 649
Please Log in or Create an account to join the conversation.
- nbetty
- Topic Author
- Offline
- Junior Member
- Posts: 26
- Thank you received: 0
Thank you, i have tried the command but it has failed to copy the file stile.
thank you
Betty
Please Log in or Create an account to join the conversation.
- jpb
- Offline
- Moderator
- retired
- Posts: 2859
- Thank you received: 649
Which OS do you use ?
Please Log in or Create an account to join the conversation.
- nbetty
- Topic Author
- Offline
- Junior Member
- Posts: 26
- Thank you received: 0
Am using Windows server 2008r2 as my OS and when i run that command it gives.
START GLOBUS Y/N
%n
jsh live ~ -->SH -c "cp ../bnk.data/eb/'&HOLD&'/'17705000084126405' ./LIMIT.BP"
** Error [ 201 ] **
Unable to open file ../bnk.data/eb/'
'HOLD' is not recognized as an internal or external command,
operable program or batch file.
''' is not recognized as an internal or external command,
operable program or batch file.
and this is how my PRINTER.ID record looks IN Globus
TB LTD - HEAD OFFICE PRINTER FILE MAINTENANCE SEE
PRINTER.NAME...... LIMT
1 PRIME.PRINTER.ID.. LIMT
2 DESCRIPTION....... Hold Output - Do Not Print
4. 1. 1 COMMAND..... SH -c "cp ../bnk.data/eb/'&HOLD&'/&HOLD.CONTROL>@I
4. 1. 2 COMMAND..... D& ."
12 CURR.NO........... 14
13. 1 INPUTTER....... 8_N.BETTY
14. 1 DATE.TIME...... 21 JUN 16 20:46
15 AUTHORISER........ 8_N.BETTY
16 CO.CODE........... UG-001-0001 TB LTD - HEAD OFFICE
17 DEPT.CODE......... 1500 INFORMATION TECHNOLOGY D
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
- Posts: 1181
- Thank you received: 157
since you have windows, use copy command and backslashes in the path. Put '^' before the "&"s as well. No quotes for file names...
Like:
SH -c "copy ..\bnk.data\eb\^&HOLD^&\17705000084126405 .\LIMIT.BP"
BTW, copying text files to ".BP" directory creates sort of misunderstanding, ".BP" is usually used for the source code...
Cheers
VK
Please Log in or Create an account to join the conversation.
- jpb
- Offline
- Moderator
- retired
- Posts: 2859
- Thank you received: 649
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
- Posts: 1181
- Thank you received: 157
What still bothers me here - the prompt "live" in the test output :((((
Cheers
VK
Please Log in or Create an account to join the conversation.
- jpb
- Offline
- Moderator
- retired
- Posts: 2859
- Thank you received: 649
Please Log in or Create an account to join the conversation.
- nbetty
- Topic Author
- Offline
- Junior Member
- Posts: 26
- Thank you received: 0
am now running COB to test , but does it mean each time am using special x-ters i must us xter ^ before ?
Please Log in or Create an account to join the conversation.
- nbetty
- Topic Author
- Offline
- Junior Member
- Posts: 26
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- nbetty
- Topic Author
- Offline
- Junior Member
- Posts: 26
- Thank you received: 0
i have run COB with Command field under PRINTER.ID setup as SH -c "copy ..\bnk.data\eb\^&HOLD^&\&HOLD.CONTROL>@ID& .\LIMIT.BP" and also as SH -c "copy ..\bnk.data\eb\^&HOLD^&\^&HOLD.CONTROL>@ID^& .\LIMIT.BP" but both commands failed to copy the record. please help
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
- Posts: 1181
- Thank you received: 157
You can also try to use jsh COPY in PRINTER.ID command:
COPY FROM &HOLD& TO LIMIT.BP &HOLD.CONTROL>@ID& OVERWRITING
Cheers
VK
Please Log in or Create an account to join the conversation.
- nbetty
- Topic Author
- Offline
- Junior Member
- Posts: 26
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- jpb
- Offline
- Moderator
- retired
- Posts: 2859
- Thank you received: 649
Please Log in or Create an account to join the conversation.
- nbetty
- Topic Author
- Offline
- Junior Member
- Posts: 26
- Thank you received: 0
both of them from Command prompt work perfectly however when i set the command under PRINTER.ID it doesn't work.
Please Log in or Create an account to join the conversation.
- jpb
- Offline
- Moderator
- retired
- Posts: 2859
- Thank you received: 649
Please Log in or Create an account to join the conversation.
- nbetty
- Topic Author
- Offline
- Junior Member
- Posts: 26
- Thank you received: 0
its R09
thank you
Please Log in or Create an account to join the conversation.
- jpb
- Offline
- Moderator
- retired
- Posts: 2859
- Thank you received: 649
The command is only executed when this field is set to 'N' before release R11 (or so) when it comes out of a service/COB, not sure when this was fixed/changed.
Try using the command with a PRINTER.ID used for P-function (use LIMIT as your PRINTER.FOR.P.FUNC) and do a hardcopy.
Please Log in or Create an account to join the conversation.
- nbetty
- Topic Author
- Offline
- Junior Member
- Posts: 26
- Thank you received: 0
I have tried that but it has also filed however am running R09_EB_Reports_21 under SPF and the COMMAND under PRINTER.ID is not called to during COB in that version so i was told to run update R09_EB_Reports that will give me VERSION 67 that issue was fixed in that. but after i installed the update am now getting COB crush with the error bellow do u have any idea about it. please help.
_BNK/PD.EOD.PRE.PROCESS_PD.EOD.RETRY.PAYMENT_5_27 JUN 2016_08:26:32_SELECT F.ACs
_BNK/PD.EOD.PRE.PROCESS_PD.EOD.RETRY.PAYMENT_5_27 JUN 2016_08:26:32_SELECT F.COs
_BNK/PD.EOD.PRE.PROCESS_PD.EOD.RETRY.PAYMENT_5_27 JUN 2016_08:26:32_SELECT FBNKs
** Error [ SUBROUTINE_PARM_ERROR ] **
'SUBROUTINE AVAIL.FUNDS.UPDATE' called with incorrect arguments , Line 1 , G
Trap from an error message, error message name = SUBROUTINE_PARM_ERROR
Line 1 , Source FWD.ACCOUNTING
jBASE debugger->I
Port 11 , pid 4160 , execute level 2 , FWD.ACCOUNTING,1
dp 000000000126A9A0 , thread 0000000001215F50 , root 0000000001210000
Default select var : (UNASSIGNED)
Default file var : (UNASSIGNED)
DATA stack : (UNASSIGNED)
Files currently open: Application 149 , actual 142
OPEN 245 , READ 16047 , WRITE 116 , DELETE 24 , CLEARFILE 0
EXECUTE 8 , INPUT 7
License usage: Used 490616 , Allocated 490807
Memory utilisation
Free space: Small blocks 0 , Ordinary blocks 1008448 , Total 1008448
Used space: Small blocks 0 , Ordinary blocks 6253535 , Total 6253535
Echo ON
In transaction: WRITE 0 , DELETE 0 , CLEARFILE 0
jBASE debugger->
Please Log in or Create an account to join the conversation.