Ab Initio AIR Commands
There are several air commands:
air projectcommands:
To check out a project :
air project export<eme sandbox path> -basedir<existing or new sandbox> \ -common <Eme path of
common sandbox><path to where it needs to be checked out> -export-commons
eg:- air project export /projects/Barclays/corp/pymt/e_layer/pymt_e_layer -basedir
/bigdata_corp/projects/corp/sureshk/sandboxes/pymt/e_layer/pymt_e_layer \
-common /projects/Barclays/stdenv /bigdata_corp/projects/corp/sureshk/sandboxes/sand -export-commons
To check in a project:
air project import<project path> -basedir<sandbox path> -files mp/<graph name>
eg:- air project import /projects/Barclays/corp/pymt/e_layer/pymt_e_layer
–basedir/bigdata_corp/projects/corp/sureshk/sandboxes/pymt/e_layer/pymt_e_layer –files
dml/<dmlname.dml>
air project show/projects/Barclays/corp/pymt/e_layer/pymt_e_layer> --- shows all parameters and file
types
air project modify<EME Path for the project -/Projects/edf/..> -extension <something like *.dat
within single quotes><content-type> --- This is to modify the project settings. Ex: If you need to checkin
*.java files into the EME, you may need to add the extension first.
air project parameter/projects/Barclays/corp/pymt/e_layer/pymt_e_layer -remove MFS
--- it removes the MFS parameter from given project location.
air project analyze-dependencies /Projects/ws-con-up –all/ -complexity-details –verbose
OR
air analyze <sandbox location along with object>
air project get-required-files /Projects/lesson/mp/Unload-B-tables.mp
air project show-common project-path [-exact [-param]] --Displays a list of the specified project’s common
projects.
air tag commands:
air tag create <tagname> -exact –file <filename of objects_list.txt> ---object level tag
air tag create –p <tagname><eme path>
air save <tagname.save> -exact-tag <tagname> ----to create save file
air tag ls (OR) air tag list
air tag ls –e <tagname> (OR) air tag list –e --- to list all objects from specified tag
air tag diff –show-all <tag1><tag2> (OR) air tag diff <tag1><tag2> --- to check tag differences
air tag combine –create <new tagname><existing tagname_1><existing tagname_2> --- to combine 2
tagsinto one new tag.
air tag create -project-only -add -comment "adding one object" <tag_name><emepath of object>
air tag change-version <tagname>object_name(OR)air tag cv tagname object name
air load <name of .save file created in last step> -relocate <Dev Project Path><QA Project Path> --To
promote code from one env to another env
ex:-air load xyz.SAVE-relocate /Projects/DEV/ENV /Projects/PROD/ENV
air -version <version number> project export
<project rpath> -basedir<sandbox path> -files mp/<your graph name.mp> -find-required-files
Eg: air -version 911022 project export /Projects/wfb/isg/source -basedir
/users/apps/userid/abinitio/cia/wfb/isg/source -files mp/src_part_rr_dt_gen.mp -find-required-files
If you have a branch then first run the versions command to find how many versions you have for that
object.
air -branch <branch name> object versions <object rpath>
Air lock commands:
air lock set –object/(-project) <EME path of the object>
air lock release –object/(-project) <EME path of the object>
air lock show–object/(-project)<EME Path for the project -/Projects/edf/..> --- shows all the file(s)
that are locked in the given project
air lock show -user<UNIX User ID> -- shows all the files locked by a user in various projects.
air lock set -unbreakable -manual-release \
-object /Projects/lesson/mp/JoinCustomers.mp \
-object /Projects/lesson/mp/LoadJoinedCustomers.mp \
-project /Projects/warehouse
air lock break –object/(-project) <EME path of the object>
air object commands:
air object ls<EME Path for the object > (OR) air ls ---To list the objects in eme
air object rm<EME Path for the object >(OR) air rm --To remove object from eme path
air object cat<EME Path for the object >(OR) air cat – To see the content from eme object
air object versions -verbose <EME Path for the object >(OR) air versions –verbose ---to see the
existing versions of given objects in EME.
air object changed <object>-version1 <version1> –version2 <version2> -diff
air object revert–revert-linked-objects <latest_version><path>
air sandbox commands:
air sandbox status<file name with the entire sandbox path> ---shows the status of file in the sandbox
with respect to the EME (Current, Stale, Modified are few statuses)
air sandbox run<full path of sandbox> --to run a object from backend
air sandbox find
nohupjobname.ksh>output 2>errors &
EME vs Sandbox
EME is the central repository and
Sandbox is the private area where you bring the object (by doing object level checkout) from the repository
for editing.
Once you are finish with your editing you can checkin back the object to the EME (object level check in)from
sandbox.
Sandbox is working copy of your project,and you can do checkin&checkout through sandbox.
EME is the version controlling unit of Ab initio where the versioncontrolling can be done, it can be called as
central repository. Whereas private sandbox is the user specific space which is a similar replica of the EME
where adeveloper works, through sandbox user can safely do the checkout and check in with no conflicts
with other developers.
air tag commands
The air tag commands create and manipulate tags at the command line
Command Description
air tag change-version Changes the versions of the objects in a tag.
air tag combine Combines contents of one or more tags under a single tag.
air tag create Creates or modifies a tag.
air tag delete Deletes a tag.
air tag diff Lists the differences between two tags.
air tag duplicate Creates a new tag from an existing tag.
air tag freeze Freezes a tag.
air tag import- Reads and checks in a configuration file.
configuration
air tag list Lists tags.
air tag ls Alias for air tag ls.
air tag remove Removes the tag from an object.
air tag rename Renames a tag.
air tag save This command has been deprecated. Use air object save.
air tag tag-configuration Tags objects specified by a configuration file.