Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: How to Use SQL Editor Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: January 23 2009 at 09:26 | IP Logged Quote GadgetGuy

I've written a lot of code in my day, except for two things.... I never got to write any IBM/360 machine code, nor any SQL code, thus a pretty basic question here, but one I don't see answered anywhere in the forum nor can I find any PH doco that explains.

The forum is full of macro examples that are in the form of "insert into macroheader values" etc statements.

Per se these are almost impossible to read and understand as macros as there is also SGL info embedded in the lines.

How does one take these examples (Copy) and Paste them into PH. I assume the Multi-Editor is the tool, but what exactly are the steps to take these examples and get them into PH where they can then be looked at in the Macros area of PH Explorer, so they can be understood and used?


__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: January 23 2009 at 10:06 | IP Logged Quote BeachBum

Well I’ve written a lot of 360 Assembler and know how to read machine language dumps and have no SQL experience. Said that it does not help me with PH. Trial and Error and experience are my best tools. If someone has exported a macro to the forum and you want to import it then you copy it to the Multi-Editor as you said. Once it’s there then go to Edit and Execute Script. It will be in your Macro list.

EDIT: Thks Noel

Edited by BeachBum - January 23 2009 at 10:40


__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
nadler
Super User
Super User


Joined: February 25 2006
Location: United States
Online Status: Offline
Posts: 354
Posted: January 23 2009 at 10:12 | IP Logged Quote nadler

Copy and paste to the multi-editor. A second tool bar
appears with all the multi-editor's functionality. Make
sure you are in SQL as opposed to the other options.
Click on execute and viola the macro will appear in you
list of macros. If you click execute a second time you
will get an error message indicating the macro name is
already being used.

Noel
Back to Top View nadler's Profile Search for other posts by nadler
 
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: January 23 2009 at 15:06 | IP Logged Quote GadgetGuy

Thanks. That worked.

How about the inverse to this action? What does one do
to be able to share macros. I don't spot a SQL Export
function in the editor.

__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: January 23 2009 at 16:15 | IP Logged Quote BeachBum

"Export" right click in the right pane.

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: January 24 2009 at 07:16 | IP Logged Quote GadgetGuy

Pete - Right-Click in what pane?

It is not the macro window, unless I'm not seeing all the context menue items there for some reason.

If it is the Multi-Edit SQL window then I'm still stumped as my question is how do you get the SQL sequences in the first place.

That is if all I have is a macro, how do I turn it into an SQL sequence to share with others?

__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: January 24 2009 at 08:49 | IP Logged Quote TonyNo

You Export the macro from the top Macros window by right clicking on the macro name in the list in the right-pane.

In the PH Explorer, click on Macros.
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: January 24 2009 at 09:59 | IP Logged Quote BeachBum

Ken, sorry for the lack of detail. PH Explorer – left click on Macros (name NOT plus) – right click on the Macro (name) and select Export. You will be given an opportunity to Save As.

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum