Hi Shashank,
in the SEND_MAIL command, you can specify an automic agent, so if your spool is being saved on an AIX Server, then you need to have an unix agent installed there
SEND_MAIL(Receiver, [Cc], Subject, Text, [Attachment],[Agent, Login Object]
Regarding the R3_GET_JOB_SPOOL, no the JOBCOUNT= parameter is not mandatory, only the FILE= parameter is, so if you want to extract the spool of the currently activated job:
R3_GET_JOB_SPOOL FILE='/tmp/spoollist.txt' is enough.
Regards
Jan