Page 1 of 1

Assembler programming

PostPosted: Wed Nov 26, 2008 9:10 am
by thiagorr
Hi!
I'm studing now the Assembler programming on z/os, but I must admit that I'm completely lost!
I have the following example code in JCL, and I don't know how make it work... or if it is really working!!!
//ADD JOB 1,NOTIFY=&SYSUID,MSGCLASS=H
//**************************************************
//* COMPILE ASSEMBLER PROGRAM
//**************************************************
//STEP1 EXEC HLASMCL
//C.SYSIN DD DSN=ZCON026.ASSEMB(ASM010),DISP=SHR
//L.SYSLMOD DD DSN=ZCON026.PART3.LOAD(ADD),DISP=SHR
// IF RC = 0 THEN
//STEP2 EXEC PGM=ADD
//STEPLIB DD DSN=ZCON026.PART3.LOAD,DISP=SHR
//PRTLINE DD SYSOUT=*
// ELSE
// ENDIF


The member ASM010 is the assembler source.
How I can compile this code above?
I've just tried de SUB command. It suppose to create the ADD member on the LOAD dataset, right?

Re: Assembler programming

PostPosted: Wed Nov 26, 2008 9:15 am
by thiagorr
please disconsider this post!
It's on the wrong area!
Sorry!

Re: Assembler programming

PostPosted: Wed Nov 26, 2008 9:36 am
by dick scherrer
Hello,

Looks like the right area to me :? Which area would you prefer?

or if it is really working
It either did something or generated some kind of diagnostic info.

Unless the job card is invalid, then you might only get a message from the submit and nothing would be in the queue.