Review ask

As a clinical trial statistician or programmer, answer three short questions in Your review: the task, the inputs and outputs, and the AI-assisted review. Agreeing with all three approves this benchmark; disagreeing with any needs a comment. Propose a fix with the Edit button on any source file, or add it to your comments.

We suggest spending no more than 5 minutes on a review. The other tabs beside Your review are background for assessment, not under review.

Summary

Lifecycle: draftEditUnder review
What this benchmark means
README.md

Public entries: Python and R. Passing coverage requires an installed inventory.

Goal: derive each adverse event's analysis start date and time (ASTDTM), its date (ASTDT), its time of day (ASTTM) and the time imputation flag (ASTTMF), and submit them in a Dataset-JSON file with the data-definition document.

Input: SDTM adverse event (AE) records with the collected start (AESTDTC) as ISO 8601 text, collected to the second, the minute, the hour, the day or the month.

Variables:

  • AETERM is the adverse event as reported.
  • ASTDTM is the start date and time: a start collected to the hour or the minute takes zero for the rest of its time, and a start collected as a date alone takes midnight; missing when the start was not collected to the day.
  • ASTDT is the date part of ASTDTM; missing when ASTDTM is.
  • ASTTM is the time of day of ASTDTM counted in seconds since midnight, so 08:30:15 is 30615, and it is shown as hh:mm:ss; missing when ASTDTM is.
  • ASTTMF says which part of the start time was imputed: H when the start was collected without a time, M when it stops at the hour and S when it stops at the minute; blank when the time was collected to the second or there is no start.

Note: in the Dataset-JSON file and the data-definition document ASTTM is an eight-byte integer shown with the SAS format TIME8., beside ASTDT with DATE9. and ASTDTM with DATETIME20.. A time of zero flagged H is an imputed midnight rather than a collected one.

Inputs

Under review
1 source file

input/ae.csv

Edit
5 rows
input/ae.csv
STUDYIDUSUBJIDAESEQAETERMAESTDTC
CATH1HEADACHE2025-03-04T08:30:15
CATH2NAUSEA2025-03-06T14:05
CATH1RASH2025-03-10
CATH2DIZZINESS2025-03
CATH1FATIGUE2025-03-12T21

Expected output

Under review
5 expected rows

expected/adae.csv

Edit
5 rows
expected/adae.csv
STUDYIDUSUBJIDAESEQAETERMASTDTMASTDTASTTMASTTMF
CATH1HEADACHE2025-03-04T08:30:152025-03-0430615—
CATH2NAUSEA2025-03-06T14:05:002025-03-0650700S
CATH1RASH2025-03-10T00:00:002025-03-100H
CATH2DIZZINESS————
CATH1FATIGUE2025-03-12T21:00:002025-03-1275600M

expected/adae.json

Edit
{
  "datasetJSONCreationDateTime": "2026-09-11T00:00:00",
  "datasetJSONVersion": "1.1.0",
  "fileOID": "CATH.adam.Define-XML_2.1.ADAE",
  "sourceSystem": {"name": "yamaa", "version": "1.0"},
  "studyOID": "STDY.CATH",
  "metaDataVersionOID": "MDV.CATH.adam",
  "metaDataRef": "define.xml",
  "itemGroupOID": "IG.ADAE",
  "records": 5,
  "name": "ADAE",
  "label": "Adverse Events Analysis Dataset",
  "columns": [
    {"itemOID": "IT.ADAE.STUDYID", "name": "STUDYID", "label": "Study Identifier", "dataType": "string", "length": 4, "keySequence": 1},
    {"itemOID": "IT.ADAE.USUBJID", "name": "USUBJID", "label": "Unique Subject Identifier", "dataType": "string", "length": 16, "keySequence": 2},
    {"itemOID": "IT.ADAE.AESEQ", "name": "AESEQ", "label": "Sequence Number", "dataType": "integer", "length": 8, "keySequence": 3},
    {"itemOID": "IT.ADAE.AETERM", "name": "AETERM", "label": "Reported Term for the Adverse Event", "dataType": "string", "length": 9},
    {"itemOID": "IT.ADAE.ASTDTM", "name": "ASTDTM", "label": "Analysis Start Date/Time", "dataType": "datetime", "targetDataType": "integer", "length": 8, "displayFormat": "DATETIME20."},
    {"itemOID": "IT.ADAE.ASTDT", "name": "ASTDT", "label": "Analysis Start Date", "dataType": "date", "targetDataType": "integer", "length": 8, "displayFormat": "DATE9."},
    {"itemOID": "IT.ADAE.ASTTM", "name": "ASTTM", "label": "Analysis Start Time", "dataType": "integer", "length": 8, "displayFormat": "TIME8."},
    {"itemOID": "IT.ADAE.ASTTMF", "name": "ASTTMF", "label": "Analysis Start Time Imputation Flag", "dataType": "string", "length": 1}
  ],
  "rows": [
    ["CATH", "CATH-UCSD-0001", 1, "HEADACHE", "2025-03-04T08:30:15", "2025-03-04", 30615, null],
    ["CATH", "CATH-UCSD-0001", 2, "NAUSEA", "2025-03-06T14:05:00", "2025-03-06", 50700, "S"],
    ["CATH", "CATH-UCSD-0002", 1, "RASH", "2025-03-10T00:00:00", "2025-03-10", 0, "H"],
    ["CATH", "CATH-UCSD-0002", 2, "DIZZINESS", null, null, null, null],
    ["CATH", "CATH-MCGILL-0003", 1, "FATIGUE", "2025-03-12T21:00:00", "2025-03-12", 75600, "M"]
  ]
}

expected/define.xml

Edit
Define-XML

Define-XML 2.1.11: CATH

Example study submitting adverse event onset times in Dataset-JSON; CATH-01; ADaMIG 1.3

Datasets
DatasetDescriptionClassStructurePurposeKeysDocumentationLocation
ADAEAdverse Events Analysis DatasetOCCURRENCE DATA STRUCTUREOne record per adverse eventAnalysisSTUDYID, USUBJID, AESEQadae.json

ADAE

ADAE variables
VariableLabel / DescriptionTypeLength or Display FormatControlled Terms or ISO FormatOrigin / Source / Method / Comment
STUDYIDStudy Identifiertext4Predecessor; AE.STUDYID
USUBJIDUnique Subject Identifiertext16Predecessor; AE.USUBJID
AESEQSequence Numberinteger8Predecessor; AE.AESEQ
AETERMReported Term for the Adverse Eventtext9Predecessor; AE.AETERM
ASTDTMAnalysis Start Date/TimeintegerDATETIME20.Derived; Sponsor AESTDTC completed with the earliest time its collected parts admit; missing when AESTDTC carries no complete date.
ASTDTAnalysis Start DateintegerDATE9.Derived; Sponsor Date part of ASTDTM.
ASTTMAnalysis Start TimeintegerTIME8.Derived; Sponsor Time part of ASTDTM as seconds since midnight.
ASTTMFAnalysis Start Time Imputation Flagtext1Derived; Sponsor H when the start was collected without a time, M when it stops at the hour and S when it stops at the minute.
Original source
<?xml version="1.0" encoding="UTF-8"?>
<ODM xmlns="http://www.cdisc.org/ns/odm/v1.3" xmlns:def="http://www.cdisc.org/ns/def/v2.1" xmlns:xlink="http://www.w3.org/1999/xlink" ODMVersion="1.3.2" FileType="Snapshot" FileOID="CATH.adam.Define-XML_2.1" CreationDateTime="2026-09-11T00:00:00" SourceSystem="yamaa" SourceSystemVersion="1.0" def:Context="Submission">
  <Study OID="STDY.CATH">
    <GlobalVariables>
      <StudyName>CATH</StudyName>
      <StudyDescription>Example study submitting adverse event onset times in Dataset-JSON</StudyDescription>
      <ProtocolName>CATH-01</ProtocolName>
    </GlobalVariables>
    <MetaDataVersion OID="MDV.CATH.adam" Name="CATH adam metadata" def:DefineVersion="2.1.11">
      <def:Standards>
        <def:Standard OID="STD.ADaMIG" Name="ADaMIG" Type="IG" Version="1.3" Status="Final"/>
      </def:Standards>
      <ItemGroupDef OID="IG.ADAE" Name="ADAE" Purpose="Analysis" SASDatasetName="ADAE" Repeating="Yes" IsReferenceData="No" def:Structure="One record per adverse event" def:ArchiveLocationID="LF.ADAE" def:StandardOID="STD.ADaMIG">
        <Description>
          <TranslatedText xml:lang="en">Adverse Events Analysis Dataset</TranslatedText>
        </Description>
        <ItemRef ItemOID="IT.ADAE.STUDYID" OrderNumber="1" Mandatory="Yes" KeySequence="1"/>
        <ItemRef ItemOID="IT.ADAE.USUBJID" OrderNumber="2" Mandatory="Yes" KeySequence="2"/>
        <ItemRef ItemOID="IT.ADAE.AESEQ" OrderNumber="3" Mandatory="Yes" KeySequence="3"/>
        <ItemRef ItemOID="IT.ADAE.AETERM" OrderNumber="4" Mandatory="Yes"/>
        <ItemRef ItemOID="IT.ADAE.ASTDTM" OrderNumber="5" Mandatory="No" MethodOID="MT.ADAE.ASTDTM"/>
        <ItemRef ItemOID="IT.ADAE.ASTDT" OrderNumber="6" Mandatory="No" MethodOID="MT.ADAE.ASTDT"/>
        <ItemRef ItemOID="IT.ADAE.ASTTM" OrderNumber="7" Mandatory="No" MethodOID="MT.ADAE.ASTTM"/>
        <ItemRef ItemOID="IT.ADAE.ASTTMF" OrderNumber="8" Mandatory="No" MethodOID="MT.ADAE.ASTTMF"/>
        <def:Class Name="OCCURRENCE DATA STRUCTURE"/>
        <def:leaf ID="LF.ADAE" xlink:href="adae.json">
          <def:title>adae.json</def:title>
        </def:leaf>
      </ItemGroupDef>
      <ItemDef OID="IT.ADAE.STUDYID" Name="STUDYID" DataType="text" Length="4" SASFieldName="STUDYID">
        <Description>
          <TranslatedText xml:lang="en">Study Identifier</TranslatedText>
        </Description>
        <def:Origin Type="Predecessor">
          <Description>
            <TranslatedText xml:lang="en">AE.STUDYID</TranslatedText>
          </Description>
        </def:Origin>
      </ItemDef>
      <ItemDef OID="IT.ADAE.USUBJID" Name="USUBJID" DataType="text" Length="16" SASFieldName="USUBJID">
        <Description>
          <TranslatedText xml:lang="en">Unique Subject Identifier</TranslatedText>
        </Description>
        <def:Origin Type="Predecessor">
          <Description>
            <TranslatedText xml:lang="en">AE.USUBJID</TranslatedText>
          </Description>
        </def:Origin>
      </ItemDef>
      <ItemDef OID="IT.ADAE.AESEQ" Name="AESEQ" DataType="integer" Length="8" SASFieldName="AESEQ">
        <Description>
          <TranslatedText xml:lang="en">Sequence Number</TranslatedText>
        </Description>
        <def:Origin Type="Predecessor">
          <Description>
            <TranslatedText xml:lang="en">AE.AESEQ</TranslatedText>
          </Description>
        </def:Origin>
      </ItemDef>
      <ItemDef OID="IT.ADAE.AETERM" Name="AETERM" DataType="text" Length="9" SASFieldName="AETERM">
        <Description>
          <TranslatedText xml:lang="en">Reported Term for the Adverse Event</TranslatedText>
        </Description>
        <def:Origin Type="Predecessor">
          <Description>
            <TranslatedText xml:lang="en">AE.AETERM</TranslatedText>
          </Description>
        </def:Origin>
      </ItemDef>
      <ItemDef OID="IT.ADAE.ASTDTM" Name="ASTDTM" DataType="integer" Length="8" SASFieldName="ASTDTM" def:DisplayFormat="DATETIME20.">
        <Description>
          <TranslatedText xml:lang="en">Analysis Start Date/Time</TranslatedText>
        </Description>
        <def:Origin Type="Derived" Source="Sponsor"/>
      </ItemDef>
      <ItemDef OID="IT.ADAE.ASTDT" Name="ASTDT" DataType="integer" Length="8" SASFieldName="ASTDT" def:DisplayFormat="DATE9.">
        <Description>
          <TranslatedText xml:lang="en">Analysis Start Date</TranslatedText>
        </Description>
        <def:Origin Type="Derived" Source="Sponsor"/>
      </ItemDef>
      <ItemDef OID="IT.ADAE.ASTTM" Name="ASTTM" DataType="integer" Length="8" SASFieldName="ASTTM" def:DisplayFormat="TIME8.">
        <Description>
          <TranslatedText xml:lang="en">Analysis Start Time</TranslatedText>
        </Description>
        <def:Origin Type="Derived" Source="Sponsor"/>
      </ItemDef>
      <ItemDef OID="IT.ADAE.ASTTMF" Name="ASTTMF" DataType="text" Length="1" SASFieldName="ASTTMF">
        <Description>
          <TranslatedText xml:lang="en">Analysis Start Time Imputation Flag</TranslatedText>
        </Description>
        <def:Origin Type="Derived" Source="Sponsor"/>
      </ItemDef>
      <MethodDef OID="MT.ADAE.ASTDTM" Name="ADAE.ASTDTM" Type="Computation">
        <Description>
          <TranslatedText xml:lang="en">AESTDTC completed with the earliest time its collected parts admit; missing when AESTDTC carries no complete date.</TranslatedText>
        </Description>
      </MethodDef>
      <MethodDef OID="MT.ADAE.ASTDT" Name="ADAE.ASTDT" Type="Computation">
        <Description>
          <TranslatedText xml:lang="en">Date part of ASTDTM.</TranslatedText>
        </Description>
      </MethodDef>
      <MethodDef OID="MT.ADAE.ASTTM" Name="ADAE.ASTTM" Type="Computation">
        <Description>
          <TranslatedText xml:lang="en">Time part of ASTDTM as seconds since midnight.</TranslatedText>
        </Description>
      </MethodDef>
      <MethodDef OID="MT.ADAE.ASTTMF" Name="ADAE.ASTTMF" Type="Computation">
        <Description>
          <TranslatedText xml:lang="en">H when the start was collected without a time, M when it stops at the hour and S when it stops at the minute.</TranslatedText>
        </Description>
      </MethodDef>
    </MetaDataVersion>
  </Study>
</ODM>
Shaded columns are derived— = missing value

Human review and assessment

Your review

3 questions and your comments · View benchmark discussions

Mapping spec

Generated from the benchmark YAML; do not edit by hand

Dataset NameVariable NameVariable LabelTypeCodelist/Controlled TermsCoreComputational MethodOrigin
ADAESTUDYIDStudy IdentifiercharacterReqCopy value from AE.STUDYID.Predecessor
ADAEUSUBJIDUnique Subject IdentifiercharacterReqCopy value from AE.USUBJID.Predecessor
ADAEAESEQSequence NumbernumericReqCopy value from AE.AESEQ.Predecessor
ADAEAETERMReported Term for the Adverse EventcharacterReqCopy value from AE.AETERM.Predecessor
ADAEASTDTMAnalysis Start Date/TimenumericISO 8601PermAESTDTC completed with the earliest time its collected parts admit; missing when AESTDTC carries no complete date.Derived
ADAEASTDTAnalysis Start DatenumericISO 8601CondDate part of ASTDTM.Derived
ADAEASTTMAnalysis Start TimenumericPermTime part of ASTDTM as seconds since midnight.Derived
ADAEASTTMFAnalysis Start Time Imputation FlagcharacterH, M, SCondH when the start was collected without a time, M when it stops at the hour and S when it stops at the minute.Derived
VariablePermitted values
ASTTMFH, M, S
VersionDateAuthorDescriptionReviewerSign-off
1.72026-10-20yamaa docs buildRead a specification in the 1.0 surface as its 0.5 counterpart; state that missing values stay missing where a mapping declares no missing handler, and leave out a declared missing answer that restates a handler's default
1.62026-10-17yamaa docs buildDescribe collected date parts written as ISO 8601 date text and times of day counted in seconds since midnight
1.52026-10-17yamaa docs buildName collected precision in words instead of letter codes; state imputation fallbacks, minimum source precision, bounds ignored outside the collected period, and invalid text with no handler as an error; describe date and datetime shifts, imputation flag codes, and partial text giving no date part
1.42026-10-15yamaa docs buildState datetime precision codes through the hour and minute, and complete only the time parts a collected datetime lacks
1.32026-09-29yamaa docs buildShow study codelist names, external dictionaries, and ISO 8601 formats in variable rows; list the document's codelist values and metadata
1.22026-09-29yamaa docs buildClassify ADaM copies from a declared input as Predecessor and recodes as Derived, and SDTM recodes of locally derived columns as Derived
1.12026-09-29yamaa docs buildResolve lookups into the donor record they select, and give every derivation shape a plain-language rule instead of its raw YAML
1.0yamaa docs buildInitial generation from spec.yaml

Agent prompt

The request an agent receives with the input files; each tier states no more than the one above

prompts/adam-adae-analysis-time/full.md

Edit
22 lines

Following CDISC ADaM standards, use the provided AE dataset to create an ADAE dataset with one record per adverse event.

The output dataset should contain the following columns in this order: STUDYID, USUBJID, AESEQ, AETERM, ASTDTM, ASTDT, ASTTM, ASTTMF

ASTDTM is the analysis start date and time from AESTDTC, written as YYYY-MM-DDThh:mm:ss. A time collected to the second is used as collected. Each part of the time that was not collected takes its earliest value: a time collected to the minute gets second 00, a time collected to the hour gets minute and second 00, and a date alone starts at 00:00:00. A start collected without its day gives no ASTDTM. ASTDT is the date part of ASTDTM. ASTTM is the time of day of ASTDTM as a whole number of seconds since midnight, so 08:30:15 is 30615 and midnight is 0. ASTTMF names the first part of the time that was not collected and had to be imputed: H when the start was collected without a time, M when it stops at the hour, and S when it stops at the minute. ASTDT, ASTTM and ASTTMF have no value when there is no ASTDTM, and ASTTMF also has no value when the time was collected to the second.

Read the source datasets from /app/input and save the completed dataset as /app/output/adae.csv.

prompts/adam-adae-analysis-time/conventions.md

Edit
12 lines

Following CDISC ADaM standards, use the provided AE dataset to create an ADAE dataset with one record per adverse event.

The output dataset should contain the following columns in this order: STUDYID, USUBJID, AESEQ, AETERM, ASTDTM, ASTDT, ASTTM, ASTTMF

ASTTMF is H, M or S, or has no value. ASTDTM is written as YYYY-MM-DDThh:mm:ss, and ASTTM is a whole number of seconds since midnight.

Read the source datasets from /app/input and save the completed dataset as /app/output/adae.csv.

prompts/adam-adae-analysis-time/brief.md

Edit
8 lines

Following CDISC ADaM standards, use the provided AE dataset to create an ADAE dataset with one record per adverse event.

The output dataset should contain the following columns in this order: STUDYID, USUBJID, AESEQ, AETERM, ASTDTM, ASTDT, ASTTM, ASTTMF

Read the source datasets from /app/input and save the completed dataset as /app/output/adae.csv.

yamaa code

Public calls generated from benchmark.yaml; results must match the expected output

R

Edit
3 lines
library(yamaa)yamaa_project("project.yaml")$spec("ADAE")$run()$output

Python

Edit
3 lines
import yamaayamaa.project("project.yaml").spec("ADAE").run().output

Solution without yamaa

Written from the full prompt and the inputs alone; CI checks it reproduces the expected output

solutions/adam-adae-analysis-time/result.R

Edit
52 lines
# Reference solution for the yamaa benchmark adam-adae-analysis-time (R track).## Written from the benchmark's full prompt and its inputs alone, as an agent# would write it. Harbor's oracle agent runs it to check that the prompt can# be solved and that the grader scores a correct answer 1.library(dplyr, warn.conflicts = FALSE)library(readr)ae <- read_csv(  "/app/input/ae.csv",  col_types = cols(AESEQ = col_integer(), .default = col_character()))# Complete a collected start by its length: the missing parts of the time# take their earliest values. A start without its day, or no start at all,# gives no analysis time.complete_start <- function(x) {  n <- nchar(x)  case_when(    n == 19 ~ x,    n == 16 ~ paste0(x, ":00"),    n == 13 ~ paste0(x, ":00:00"),    n == 10 ~ paste0(x, "T00:00:00"),    TRUE ~ NA_character_  )}# The flag names the coarsest part of the time that was supplied.time_flag <- function(x) {  n <- nchar(x)  case_when(    n == 16 ~ "S",    n == 13 ~ "M",    n == 10 ~ "H",    TRUE ~ NA_character_  )}adae <- ae |>  mutate(    ASTDTM = complete_start(AESTDTC),    ASTDT = substr(ASTDTM, 1, 10),    ASTTM = as.integer(substr(ASTDTM, 12, 13)) * 3600L +      as.integer(substr(ASTDTM, 15, 16)) * 60L +      as.integer(substr(ASTDTM, 18, 19)),    ASTTMF = time_flag(AESTDTC)  ) |>  select(STUDYID, USUBJID, AESEQ, AETERM, ASTDTM, ASTDT, ASTTM, ASTTMF)dir.create("/app/output", showWarnings = FALSE)write_csv(adae, "/app/output/adae.csv", na = "")

solutions/adam-adae-analysis-time/result.py

Edit
58 lines
# Reference solution for the yamaa benchmark adam-adae-analysis-time (Python track).## Written from the benchmark's full prompt and its inputs alone, as an agent# would write it. Harbor's oracle agent runs it to check that the prompt can# be solved and that the grader scores a correct answer 1.from pathlib import Pathimport polars as plae = pl.read_csv("/app/input/ae.csv", infer_schema=False).with_columns(    pl.col("AESEQ").cast(pl.Int64))# What a collected start is missing, by its length, with the flag that names# the coarsest part supplied. A time to the second needs nothing.FIRST = {19: ("", None), 16: (":00", "S"), 13: (":00:00", "M"), 10: ("T00:00:00", "H")}rows = []for record in ae.iter_rows(named=True):    collected = record["AESTDTC"]    astdtm = astdt = asttm = asttmf = None    # A start without its day, or no start at all, gives no analysis time.    if collected is not None and len(collected) in FIRST:        suffix, asttmf = FIRST[len(collected)]        astdtm = collected + suffix        astdt = astdtm[:10]        hours, minutes, seconds = (int(part) for part in astdtm[11:].split(":"))        asttm = hours * 3600 + minutes * 60 + seconds    rows.append(        {            "STUDYID": record["STUDYID"],            "USUBJID": record["USUBJID"],            "AESEQ": record["AESEQ"],            "AETERM": record["AETERM"],            "ASTDTM": astdtm,            "ASTDT": astdt,            "ASTTM": asttm,            "ASTTMF": asttmf,        }    )adae = pl.DataFrame(    rows,    schema={        "STUDYID": pl.String,        "USUBJID": pl.String,        "AESEQ": pl.Int64,        "AETERM": pl.String,        "ASTDTM": pl.String,        "ASTDT": pl.String,        "ASTTM": pl.Int64,        "ASTTMF": pl.String,    },)Path("/app/output").mkdir(exist_ok=True)adae.write_csv("/app/output/adae.csv")

solutions/adam-adae-analysis-time/result.sas

Edit
35 lines
/* opensas reference solution for the yamaa benchmark adam-adae-analysis-time.   Reads the benchmark inputs and derives the requested output.   Execute with the existing opensas runtime: opensas /app/output/result.sas. */data ae;  length STUDYID USUBJID AETERM AESTDTC $1024;  infile "/app/input/ae.csv" dsd dlm="," firstobs=2 truncover lrecl=32767;  input STUDYID : $char1024. USUBJID : $char1024. AESEQ AETERM : $char1024. AESTDTC : $char1024.;run;/* Complete each collected start by its length: the missing parts of the time   take their earliest values, and the flag names the coarsest part supplied.   A start without its day, or no start, gives no analysis time. The time of   day counts the seconds since midnight. */data result;  length ASTDTM $19 ASTDT $10 ASTTMF $1;  set ae;  ASTDTM=''; ASTDT=''; ASTTMF=''; ASTTM=.;  ls=lengthn(AESTDTC);  if ls=19 then ASTDTM=AESTDTC;  else if ls=16 then do; ASTDTM=cats(AESTDTC, ':00'); ASTTMF='S'; end;  else if ls=13 then do; ASTDTM=cats(AESTDTC, ':00:00'); ASTTMF='M'; end;  else if ls=10 then do; ASTDTM=cats(AESTDTC, 'T00:00:00'); ASTTMF='H'; end;  if ASTDTM ne '' then do;    ASTDT=substr(ASTDTM, 1, 10);    ASTTM=input(substr(ASTDTM, 12, 2), 2.)*3600 + input(substr(ASTDTM, 15, 2), 2.)*60      + input(substr(ASTDTM, 18, 2), 2.);  end;run;proc sql;  create table final as select STUDYID, USUBJID, AESEQ, AETERM, ASTDTM, ASTDT, ASTTM, ASTTMF    from result;quit;proc export data=final outfile="/app/output/adae.csv" dbms=csv replace; run;