setting up PRINTER.ID

  • nbetty
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 4 months ago #19569 by nbetty
setting up PRINTER.ID was created by nbetty
Dear ALL,
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.

More
8 years 4 months ago #19572 by jpb
Replied by jpb on topic setting up PRINTER.ID
SH -c "cp ../bnk.data/eb/'&HOLD&'/&HOLD.CONTROL>@ID& ./LIMIT.BP"

Please Log in or Create an account to join the conversation.

  • nbetty
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 4 months ago #19573 by nbetty
Replied by nbetty on topic setting up PRINTER.ID
Hello JBP,
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.

More
8 years 4 months ago #19577 by jpb
Replied by jpb on topic setting up PRINTER.ID
Have you tried the same command from command prompt (replacing '/&HOLD.CONTROL>@ID& with a existing filename)?
Which OS do you use ?

Please Log in or Create an account to join the conversation.

  • nbetty
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 4 months ago #19578 by nbetty
Replied by nbetty on topic setting up PRINTER.ID
Hello JBP,
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
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
More
8 years 4 months ago #19582 by VK
Replied by VK on topic setting up PRINTER.ID
Hi
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.

More
8 years 4 months ago #19583 by jpb
Replied by jpb on topic setting up PRINTER.ID
Thanks VK - so i was on the right track ;-)

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
More
8 years 4 months ago #19584 by VK
Replied by VK on topic setting up PRINTER.ID
Yes, you're welcome..
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.

More
8 years 4 months ago #19587 by jpb
Replied by jpb on topic setting up PRINTER.ID
Live testing is the ultimate challenge !

Please Log in or Create an account to join the conversation.

  • nbetty
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 4 months ago #19588 by nbetty
Replied by nbetty on topic setting up PRINTER.ID
Thanks alot VK,
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
  • Junior Member
More
8 years 4 months ago #19590 by nbetty
Replied by nbetty on topic setting up PRINTER.ID
hahaha yes its on test server .

Please Log in or Create an account to join the conversation.

  • nbetty
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 4 months ago #19592 by nbetty
Replied by nbetty on topic setting up PRINTER.ID
Hi VK,
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
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
More
8 years 4 months ago #19593 by VK
Replied by VK on topic setting up PRINTER.ID
Not sure about the reason... Hope the target directory exists...

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
  • Junior Member
More
8 years 4 months ago #19594 by nbetty
Replied by nbetty on topic setting up PRINTER.ID
Thank you VK, i have tried this COPY FROM &HOLD& TO LIMIT.BP &HOLD.CONTROL>@ID& OVERWRITING but still failing

Please Log in or Create an account to join the conversation.

More
8 years 4 months ago #19598 by jpb
Replied by jpb on topic setting up PRINTER.ID
Again: Try both commands from the prompt and let us know the result.

Please Log in or Create an account to join the conversation.

  • nbetty
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 4 months ago #19600 by nbetty
Replied by nbetty on topic setting up PRINTER.ID
Thank You JBP,
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.

More
8 years 4 months ago #19602 by jpb
Replied by jpb on topic setting up PRINTER.ID
Can you post the PRINTER.ID and let us know your T24 release?

Please Log in or Create an account to join the conversation.

  • nbetty
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 4 months ago #19603 by nbetty
Replied by nbetty on topic setting up PRINTER.ID
hello JBP,
its R09
thank you

Please Log in or Create an account to join the conversation.

More
8 years 4 months ago #19604 by jpb
Replied by jpb on topic setting up PRINTER.ID
There is/was a dependency to field HOLD.BATCH.OUTPUT in SPF depending on the way the printout is created.
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
  • Junior Member
More
8 years 4 months ago #19610 by nbetty
Replied by nbetty on topic setting up PRINTER.ID
Thank You JBP,
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.

Time to create page: 0.123 seconds