×
Discuss on T24 Installation, Setting up the environment, TC Server, jBOSS, Package & Deployment, etc…
Reading Hold for Deal slip
- Valleyman1
- Topic Author
- Visitor
9 years 3 months ago - 9 years 3 months ago #17901
by Valleyman1
Reading Hold for Deal slip was created by Valleyman1
HI,
How are you. Am looking for ways to send deal-slip from T24 to an external system. I have tried reading HC ids and get the file from and HOLD but its not very efficient.
Regard
How are you. Am looking for ways to send deal-slip from T24 to an external system. I have tried reading HC ids and get the file from and HOLD but its not very efficient.
0058 SEL.CMD = 'SELECT F.HOLD.CONTROL WITH REPORT.NAME EQ ENQUIRY.PRINT'
0059 CALL EB.READLIST(SEL.CMD, FILE.LIST,'','','')
0060
0061 LOOP
0062 REMOVE HD.ID FROM FILE.LIST SETTING POS
0063 WHILE HD.ID:POS
0064 YCNT = DCOUNT(FILE.LIST,FM)
0065 CALL F.READ(FN.HOLD,HD.ID,R.RECORD,F.HOLD,ER)
0066 CONVERT FM TO LF IN R.RECORD
Regard
Last edit: 9 years 3 months ago by Valleyman1.
Please Log in or Create an account to join the conversation.
- jpb
- Offline
- Moderator
- retired
Less
More
- Posts: 2859
- Thank you received: 649
9 years 3 months ago #17926
by jpb
Replied by jpb on topic Reading Hold for Deal slip
Create a PRINTER.ID where you attach a command to copy the file to a different directory.
From here you can send the file anywhere using the tool of your choise.
There are samples in the helptext.
From here you can send the file anywhere using the tool of your choise.
There are samples in the helptext.
Please Log in or Create an account to join the conversation.
- Valleyman1
- Topic Author
- Visitor
9 years 2 months ago #17978
by Valleyman1
Replied by Valleyman1 on topic Reading Hold for Deal slip
I have tried it, i keep getting this error:
'/198405002434288100 >> PRINTDir": No such file or directory
wat could be the issue. The director exist in BNK.RUN
'/198405002434288100 >> PRINTDir": No such file or directory
wat could be the issue. The director exist in BNK.RUN
Please Log in or Create an account to join the conversation.
- jpb
- Offline
- Moderator
- retired
Less
More
- Posts: 2859
- Thank you received: 649
9 years 2 months ago #17981
by jpb
Replied by jpb on topic Reading Hold for Deal slip
We use e.g.
SH -c "cat ../bnk.data/eb/'&HOLD&'/&HOLD.CONTROL>@ID& > ./OutDir/&HOLD.CONTROL>OUTPUT.NAME&"
where OUTPUT.NAME is an I-descriptor on HOLD.CONTROL generating an unique name by concatinating certain fields.
SH -c "cat ../bnk.data/eb/'&HOLD&'/&HOLD.CONTROL>@ID& > ./OutDir/&HOLD.CONTROL>OUTPUT.NAME&"
where OUTPUT.NAME is an I-descriptor on HOLD.CONTROL generating an unique name by concatinating certain fields.
Please Log in or Create an account to join the conversation.
- Valleyman1
- Topic Author
- Visitor
9 years 2 months ago - 9 years 2 months ago #17983
by Valleyman1
Replied by Valleyman1 on topic Reading Hold for Deal slip
The setup below still giving "No such file or directory" during printing and nothing is being populated in output directory
PRINTER.NAME...... PRINTDir
------------------------------------------------------------------------------
1 PRIME.PRINTER.ID.. PRINTDir
2 DESCRIPTION....... Print to directory
4. 1. 1 COMMAND..... SH -c "cat ../bnk.data/eb/'&HOLD&'/
4. 2. 1 COMMAND..... &HOLD.CONTROL>@ID& > ./REPORT.PTR/&HOLD.CONTROL>@ID&"
12 CURR.NO........... 4
13. 1 INPUTTER....... 34_MIG
14. 1 DATE.TIME...... 26 AUG 15 14:59
Last edit: 9 years 2 months ago by Valleyman1.
Please Log in or Create an account to join the conversation.
- jpb
- Offline
- Moderator
- retired
Less
More
- Posts: 2859
- Thank you received: 649
9 years 2 months ago #17984
by jpb
Replied by jpb on topic Reading Hold for Deal slip
What do you get if you pass the string directly in jsh (with replacing the variables) ?
Have you tried using the full length of COMMAND and not breaking to new line after '&HOLD&'/ ?
Have you tried using the full length of COMMAND and not breaking to new line after '&HOLD&'/ ?
Please Log in or Create an account to join the conversation.
- Valleyman1
- Topic Author
- Visitor
9 years 2 months ago #17986
by Valleyman1
Replied by Valleyman1 on topic Reading Hold for Deal slip
jsh Valleyman ~ -->SH -c " cat ../bnk.data/eb/'&HOLD&'/198405002434288100 > ./REPORT.PTR/198405002434288100"
is working fine. The file is moving correctly. I have tried to use the full COMMAND length and not working.
even tried to put actual report id on COMMAND not working either:
4. 1. 1 COMMAND..... SH -c " cat ../bnk.data/eb/'&HOLD&'/
4. 2. 1 COMMAND..... 198405002434288100 > ./REPORT.PTR/198405002434288100"
is working fine. The file is moving correctly. I have tried to use the full COMMAND length and not working.
even tried to put actual report id on COMMAND not working either:
4. 1. 1 COMMAND..... SH -c " cat ../bnk.data/eb/'&HOLD&'/
4. 2. 1 COMMAND..... 198405002434288100 > ./REPORT.PTR/198405002434288100"
Please Log in or Create an account to join the conversation.
- jpb
- Offline
- Moderator
- retired
Less
More
- Posts: 2859
- Thank you received: 649
9 years 2 months ago #17987
by jpb
Replied by jpb on topic Reading Hold for Deal slip
Is that full lenght of COMMAND ?
I would expect something like
4. 1. 1 COMMAND..... SH -c " cat ../bnk.data/eb/'&HOLD&'/19840500243428
4. 2. 1 COMMAND..... 8100 > ./REPORT.PTR/198405002434288100"
I would expect something like
4. 1. 1 COMMAND..... SH -c " cat ../bnk.data/eb/'&HOLD&'/19840500243428
4. 2. 1 COMMAND..... 8100 > ./REPORT.PTR/198405002434288100"
Please Log in or Create an account to join the conversation.
- Valleyman1
- Topic Author
- Visitor
9 years 2 months ago - 9 years 2 months ago #17989
by Valleyman1
Replied by Valleyman1 on topic Reading Hold for Deal slip
It will give me message 8100: No such file or directory when trying to print.
Last edit: 9 years 2 months ago by Valleyman1.
Please Log in or Create an account to join the conversation.
- jpb
- Offline
- Moderator
- retired
Less
More
- Posts: 2859
- Thank you received: 649
9 years 2 months ago #17990
by jpb
Replied by jpb on topic Reading Hold for Deal slip
Sorry man - I was blind !
You are using the next mutlivalue for the commad instead of the next subvalue !
Move the content of 4.2.1 to 4.1.2 and it will work smoothly !
You are using the next mutlivalue for the commad instead of the next subvalue !
Move the content of 4.2.1 to 4.1.2 and it will work smoothly !
Please Log in or Create an account to join the conversation.
- Valleyman1
- Topic Author
- Visitor
9 years 2 months ago #17991
by Valleyman1
Replied by Valleyman1 on topic Reading Hold for Deal slip
Aaaaa, its now working. Thank you
Please Log in or Create an account to join the conversation.
Time to create page: 0.086 seconds