Library Home

 
Home » Departments » Acquisitions  [Print View


OCLC Macro "RecsAndInsAdd"

The "RecsAndInsAdd" OCLC Macro is the macro used to insert the OCLC/Scotty transfer Command line into an OCLC record before exporting it into Scotty.  When entering order records, the macro line needs to be changed frequently as the ordering information changes from order to order.  It is easy to "miss" important codes when changing from one type of order to another.  It is possible to maintain a macro line for each type of order (gift, form selection, claim on approval) to assure the common coding for each type of order is included.

You can put as many lines in the macro as you wish so long as only one is active.  Make extra lines inactive by placing an apostrophe (') character at the beginning of the lines you wish the Macro to ignore, or "comment" out.  The following is an example of a "RecsAndInsAdd" OCLC Macro.  In the following example, the line in red is the active macro line.

'MacroName:RecsAndInsAdd
'MacroDescription:Adds a 949 Command Line for OCLC transfer

sub main

  Dim CS as Object
  Set CS = CreateObject("Connex.Client")

  CS.AddFieldLine 2,""

  CS.InsertText "949"

  CS.TabKey True

  CS.TabKey True

' CS.InsertText "*recs=bo;ins=sandy;b3=o;po=p;c1=s;bn=rstk;c3=4;fd=afrif;vd=bkhos;ep="
CS.InsertText "*recs=bo;ins=sandy;b3=o;po=p;c1=s;dflt=forms;bn=rstk;c3=3;fd=hista;vd=ybpr;fm=l;ep="
' CS.InsertText "*recs=bo;ins=sandy;b3=o;c1=s;po=p;bn=sstk;br=sstk;c3=1;fd=agrif;vd=ybps;on=a;ep="
' CS.InsertText "*recs=bo;ins=sandy;b3=o;po=n;c1=s;dflt=gifts;bn=rstk;c3=3;fm=l;rd=11-03-98;"
' CS.InsertText "*recs=b;ins=sandy;b3=o;bn=rstk;"

end sub



Content maintained by: [SOberlies]


Last modified date: Wed 12/31/1969 04:00 pm by [so]
UCR Libraries RSS Feed UC Riverside Homepage ©2007 UCR Libraries, All Rights Reserved. Privacy Statement   Suggestions/Comments