Published on :
Macro CREATION_INTERNE

QC Validation Macro AHGQCpassed

This code is also available in: Deutsch Español Français
This macro automates the recording of a QC validation success. It retrieves the name of the current macro, saves the command line via %AHGsavecommandline, and generates documentation or a validation log via %AHGqcdocen with a status coded as 1. It depends on several macro variables (local or global) such as &user, &users, and &prot to identify the study and user context.
Data Analysis

Type : CREATION_INTERNE


The code does not read data tables. It manipulates metadata (macro variables) and orchestrates the calling of other utility macros.

1 Code Block
MACRO
Explanation :
Macro definition. It captures the name of the current macro, saves the command, then invokes the documentation macro %AHGqcdocen by passing it the object, folder, user/study information, and forcing the status to 1 (passed) and bugids to NOBUG.
Copied!
1%macro AHGQCpassed( obj,version=,comment=,folder=folder);
2 %local macroname;
3 %let macroname=&sysmacroname;
4 %AHGsavecommandline(¯oname);
5%AHGqcdocen(
6&obj
7,folder=&folder
8,user=&user,users=&users,studyname=&prot,version=&version,
9STATUS=1,reason=&comment,bugids=NOBUG);
10%mend;
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.