Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Batch File Transfer from AS/400 CL?

700 views
Skip to first unread message

ke...@mpx.com.au

unread,
Jun 6, 1996, 3:00:00 AM6/6/96
to

My objective is to download files from the AS/400 to the PC and run it
as soon as the files are created. The program that creates the files is
run daily at 11:00 pm and is a job schedule entry. Is there a way I can
initiate the file transfer from the same program? I've tried adding
STRPCCMD to call the PC batch file but it doesn't work (Error msg:
Command STRPCCMD not allowed in this setting).

Thanks in advance,

A. Abela

Donald Burdette

unread,
Jun 6, 1996, 3:00:00 AM6/6/96
to

You must have the Organizer running before STRPCCMD will work.

Don Burdette

Orangtang

unread,
Jun 7, 1996, 3:00:00 AM6/7/96
to

If the CL job is a batch job then I do not know of a way..I do know that
if the CL job is running interactively on the AS/400, on the PC you want
to download to, you can execute the STRPCO command in the CL then execute
the STRPCCMD...Ron

bm...@cam.org

unread,
Jun 9, 1996, 3:00:00 AM6/9/96
to

In <31B6C7...@mpx.com.au>, ke...@mpx.com.au writes:
>My objective is to download files from the AS/400 to the PC and run it
>as soon as the files are created. The program that creates the files is
>run daily at 11:00 pm and is a job schedule entry. Is there a way I can
>initiate the file transfer from the same program? I've tried adding
>STRPCCMD to call the PC batch file but it doesn't work (Error msg:
>Command STRPCCMD not allowed in this setting).

You can't do that for a batch job. What you could do is to
use the CPYTOPCD to create a PC file in the shared folders, then
it could be directly available to the PC through the I: Drive. If
you have a TCP/IP link with your AS/400, you could also run an FTP
daemon on the PC and have the AS/400 issue the FTP command to transfer
to the PC Disk. You could also have a scheduler program run on your
machine and have it do the file transfer. If you are worried about
the synchronisation, you could issue a RMTCMD from the PC to run
your batch job and then do the file transfer to the PC.

Benoit Mercier
Groupe Informatique Present Inc.

Ian Clough

unread,
Jun 9, 1996, 3:00:00 AM6/9/96
to

In article: <31B6C7...@mpx.com.au> ke...@mpx.com.au writes:
>
> My objective is to download files from the AS/400 to the PC and run it
> as soon as the files are created. The program that creates the files
is
> run daily at 11:00 pm and is a job schedule entry. Is there a way I
can
> initiate the file transfer from the same program? I've tried adding
> STRPCCMD to call the PC batch file but it doesn't work (Error msg:
> Command STRPCCMD not allowed in this setting).

If you have an ethernet connection on your AS/400 you can do this using
FTP. You will need a TCP/IP stack on your PC (eg W95) and also an FTP
server package. There are a number of shareware packages available.

We use this technique to:-

- send files from a PC to the AS/400
- schedule an AS/400 program from the PC to deal with the file(s)
- Get the AS/400 to send back files as they become available.

We haven't found a way yet to schedule a PC program from the AS/400
using FTP.
--
Ian Clough (at Home)


ccp...@ibm.net

unread,
Jun 14, 1996, 3:00:00 AM6/14/96
to

In <31B6C7...@mpx.com.au>, ke...@mpx.com.au writes:
>My objective is to download files from the AS/400 to the PC and run it
>as soon as the files are created. The program that creates the files is
>run daily at 11:00 pm and is a job schedule entry. Is there a way I can
>initiate the file transfer from the same program? I've tried adding
>STRPCCMD to call the PC batch file but it doesn't work (Error msg:
>Command STRPCCMD not allowed in this setting).
>
>Thanks in advance,
>
>A. Abela
>
>

It is a older problem in this news.

The STRPCCMD command only work in the interactive programs runing in
the PC workstation function with PCO or Rumba/400 PCO or equivalent soft
active in sesion with STRPCO command in OS/400 job.

See the PC/Support or Client Access Administration Manual for details.

Martin Kendrick

unread,
Jun 15, 1996, 3:00:00 AM6/15/96
to

In article <4pskbr$3a...@news-s01.ny.us.ibm.net>, ccp...@ibm.net writes
1 Alternative perhaps is to use a data queue to communicate between a PC
& 400 - You could have a job on the PC constanly monitering the data
queue which will read the contents and write to a file.The 400 could
then write to the dataqueu with its records.Provided the PC is connected
throughout the night and you have a programmer for the task it wont
cause you that many problems.

Just a though
-------------------------------------------------------------------
Martin Kendrick ( AS400/PC Programmer/Analyst)
Life is a Bowl of Cherries --- Bite Hard

ccp...@ibm.net

unread,
Jun 15, 1996, 3:00:00 AM6/15/96
to

Other solution is these pocedure:

1st- Transform the all fields in data file to EBCDIC contents (field in packed/binary
formats)

2nd- Transform the new (expanded) data file to ASCII-PCFILE in folder via
CPYTOPCD TRNFMT(*TEXT) TRNTBL(*DFT) command.

3rt- Access to shared folders via any PC and copy these PCFILE.

Sui-sum Fok

unread,
Jun 16, 1996, 3:00:00 AM6/16/96
to

For file transfer from AS/400 and PCs, can I know what job scheduler you use on PC? I
need the one works for OS/2.

Best regards,
Sui-sum

Rob Muller

unread,
Jun 17, 1996, 3:00:00 AM6/17/96
to

sui...@compusmart.ab.ca (Sui-sum Fok) writes:

>Best regards,
>Sui-sum

Hi,
I do not know if it still exists, but when OS/2 v2 was around there was
the AT command. This would allow you to suspend tasks until a certain
time.

Greets,
Rob
--
Rob Muller Phone +31-(0)20-6417524 Quote :
E-mail rmu...@xs4all.nl How do we get to
where we're coming
The Netherlands from. (Seal)

KTGS

unread,
Jun 27, 1996, 3:00:00 AM6/27/96
to
We had the same problem. We use a product called Commando from
Picante Software. It is great! It allows you PC commands on the AS/400.
Any command you can enter from the Windows File, Run prompt can be entered
and sent to the PC from your AS/400.

The only problem I experienced with downloading was a Rumba problem, not
Commando. Rumba version was from IBM, Client Access for Windows V3R1M1.
The transfer would not run if the current directory on the PC was not
RUMBACAW.
Quick solution was to write a VB program to change the directory and then
run
the transfer, then use Commando to run the VB program.

0 new messages