dbTalk Databases Forums  

My copy command is not working the way I think it should

comp.databases.pick comp.databases.pick


Discuss My copy command is not working the way I think it should in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Wytevette
 
Posts: n/a

Default My copy command is not working the way I think it should - 04-12-2006 , 05:02 PM






Hello,

When I issue the command:

COPY VALID.PM M*01*18
to: VALID.NEW M*01*18

It just creates another record called VALID.NEW in my VALID.PM file.

I did a CREATE.FILE VALID.NEW with matching parameters.

I am hoping to copy the record M*01*18 from the VALID.PM file to the
record M*01*18 in the VALID.NEW file.

I am running IBM universe in PICK flavor.

Thank you in advance for any help,
Phil


Reply With Quote
  #2  
Old   
frosty
 
Posts: n/a

Default Re: My copy command is not working the way I think it should - 04-12-2006 , 05:17 PM






COPY VALID.PM M*01*18
to: (VALID.NEW M*01*18

Note the left paren which indicates
"File Name Follows."

FYI Since you are not changing the
Item ID of the copied record, you
could use the following:

COPY VALID.PM M*01*18
to: (VALID.NEW

--
frosty

Wytevette wrote:
Quote:
Hello,

When I issue the command:

COPY VALID.PM M*01*18
to: VALID.NEW M*01*18

It just creates another record called VALID.NEW in my VALID.PM file.

I did a CREATE.FILE VALID.NEW with matching parameters.

I am hoping to copy the record M*01*18 from the VALID.PM file to the
record M*01*18 in the VALID.NEW file.

I am running IBM universe in PICK flavor.

Thank you in advance for any help,
Phil



Reply With Quote
  #3  
Old   
Simon Verona
 
Posts: n/a

Default Re: My copy command is not working the way I think it should - 04-12-2006 , 05:18 PM



I think you need a ( before the "VALID.NEW"

ie

COPY VALID.PM M*01*18
TO: (VALID.NEW

(you don't need to repeat the id as it will keep it the same anyway)

HTH
Simon

--
================================
Simon Verona
Dealer Management Service Ltd
Stewart House
Centurion Business Park
Julian Way
Sheffield
S9 1GD

Tel: 0870 080 2300
Fax: 0870 735 0011

"Wytevette" <philmoore (AT) atvpix (DOT) com> wrote

Quote:
Hello,

When I issue the command:

COPY VALID.PM M*01*18
to: VALID.NEW M*01*18

It just creates another record called VALID.NEW in my VALID.PM file.

I did a CREATE.FILE VALID.NEW with matching parameters.

I am hoping to copy the record M*01*18 from the VALID.PM file to the
record M*01*18 in the VALID.NEW file.

I am running IBM universe in PICK flavor.

Thank you in advance for any help,
Phil




Reply With Quote
  #4  
Old   
Tom deL
 
Posts: n/a

Default Re: My copy command is not working the way I think it should - 04-12-2006 , 05:19 PM



Hi Phil,

Quote:
When I issue the command:

COPY VALID.PM M*01*18
to: VALID.NEW M*01*18

It just creates another record called VALID.NEW in my VALID.PM file.

I did a CREATE.FILE VALID.NEW with matching parameters.

I am hoping to copy the record M*01*18 from the VALID.PM file to the
record M*01*18 in the VALID.NEW file.

I am running IBM universe in PICK flavor.
In AP and D3, you use an open paren "(" to send the item to a different
file:

COPY VALID.PM M*01*18
to: (VALID.NEW M*01*18

Try that and see if it works.
-Tom

P.S. You shouldn't need the item ID even in this case:

COPY VALID.PM M*01*18
to: (VALID.NEW

Should work too.



Reply With Quote
  #5  
Old   
Bruce Nichol
 
Posts: n/a

Default Re: My copy command is not working the way I think it should - 04-12-2006 , 05:53 PM



Goo'day,

On 12 Apr 2006 15:02:53 -0700, "Wytevette" <philmoore (AT) atvpix (DOT) com>
wrote:

Quote:
Hello,

When I issue the command:

COPY VALID.PM M*01*18
to: VALID.NEW M*01*18
Aren't you missing the parentheses () around the file name?

Eg

to: (VALID.NEW if you're intending the same record ID, or
to: (VALID.NEW) record name if you require a different record ID

Your original without the parentheses only copies to a new record ID
in the same file....

HTH

Regards,

Bruce Nichol
Talon Computer Services
ALBURY NSW Australia

http://www.taloncs.com.au

If it ain't broke, fix it until it is....


Reply With Quote
  #6  
Old   
Tracy Raines
 
Posts: n/a

Default Re: My copy command is not working the way I think it should - 04-12-2006 , 11:41 PM



Ooh, ooh, I know the answer. Man I love the easy ones. Oh wait, there
are already four nearly identical (correct) answers already.

Don't feel bad, there are times even after all these years when I
forget the ( in my haste and then wonder where my record went for a
moment.


Reply With Quote
  #7  
Old   
frosty
 
Posts: n/a

Default Re: My copy command is not working the way I think it should - 04-13-2006 , 12:05 PM



Tracy Raines wrote:
Quote:
Ooh, ooh, I know the answer. Man I love the easy ones. Oh wait,
there are already four nearly identical (correct) answers already.

Don't feel bad, there are times even after all these years when I
forget the ( in my haste and then wonder where my record went for a
moment.
Even worse, when you find an Item-ID that's clearly a filename,
loooong after it was copied, and wonder what did _not_ get copied!
BTDT. Ouch, very ouch.

--
frosty




Reply With Quote
  #8  
Old   
Simon Verona
 
Posts: n/a

Default Re: My copy command is not working the way I think it should - 04-13-2006 , 12:52 PM



It's always good to see a consensus... the answers are almost identical!!
<G>

Simon

--
================================
Simon Verona
Dealer Management Service Ltd
Stewart House
Centurion Business Park
Julian Way
Sheffield
S9 1GD

Tel: 0870 080 2300
Fax: 0870 735 0011

"Tracy Raines" <liveblues (AT) gmail (DOT) com> wrote

Quote:
Ooh, ooh, I know the answer. Man I love the easy ones. Oh wait, there
are already four nearly identical (correct) answers already.

Don't feel bad, there are times even after all these years when I
forget the ( in my haste and then wonder where my record went for a
moment.




Reply With Quote
  #9  
Old   
Tony Gravagno
 
Posts: n/a

Default Re: My copy command is not working the way I think it should - 04-13-2006 , 04:50 PM



"Tracy Raines" wrote:
Quote:
Don't feel bad, there are times even after all these years when I
forget the ( in my haste and then wonder where my record went for a
moment.
All of us do things like that. I was just discussing this with
someone the other day. Pick doesn't have an intelligent commandline,
though at one time or another we all dread having to retype the same
things over and over, and ask "why doesn't it just know what I want to
do!?".
- How many times have you selected a file and then typed the same
filename wrong when you then went to Copy, Sort, etc?
- Why do I need to retype the name of my program file every single
time when I'm almost always working in only one program file in any
given session?
- Why do I even need to know the filenames that contain my programs?
The catalog entry tells the system where everything is, so I should
only have to edit the item name.
- Why doesn't the Copy command notice that the first item ID is the
same as my filename, so that it can prepend the parenthesis for me?
- When I jump from one account to another and then reference a verb or
file in the first account, it's obvious that I thought I was in the
first account, so why doesn't the system ask me if I want to go back
before it executes my command?
- When I use dev-make or chg-device in D3 to use pseudo-floppies, why
doesn't it save the filenames somewhere so that I can use them again a
couple days later? (I shutdown D3 every night so tape devices are
reset to defaults.)
- When I'm typing a command, why doesn't TCL intellisense warn me with
sounds or colors when I get verb, account, file, dict, or list names
incorrect so that I don't need to retype the whole thing (with or
without the stacker)?
- When I'm in U2 and enter ED rather than AE, why doesn't it just
execute AE?

There are all sorts of these little irritating anomalies that all of
us live with. For each one the answer may be a simple change to the
VOC/MD. The only person I know of who has made a real effort to
overcome such things on a broad scale is Bro Cope with his mvToolBox
(http://www.mvtoolbox.com/). I don't know if his software does the
above things but it's an amazing tool that does hundreds of other
things for us. That software just doesn't get the exposure that it
deserves.

My point though is that we tend to tolerate a lot more from the DBMS
than we would from our own applications. As always, I wouldn't expect
this from the DBMS vendors themselves but would hope there would be
enough demand to support a third-party effort (I wouldn't do this one
for resale).

T


Reply With Quote
  #10  
Old   
Tracy Raines
 
Posts: n/a

Default Re: My copy command is not working the way I think it should - 04-13-2006 , 08:36 PM



Tony,

I can't speak about other MV vendors, but I think that you are asking a
lot out of Raining Data. I'd be happy if they would fix the dual
processor problem.

It's a shame that they seemed to have abandoned the D3 product. They
seem more concerned with making sure that people don't steal their
product than they are fixing problems or making improvements.

But I digress.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.