Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
JCL PARM processing in Assembler

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
ganeshptrk

New User


Joined: 04 Apr 2007
Posts: 17
Location: Chennai

PostPosted: Wed Feb 27, 2008 11:58 am    Post subject: JCL PARM processing in Assembler
Reply with quote

Hi,
Can anyone give me an example to capture the parameters passed through JCL PARM to a Assembler program.

For example
//STEP0001 EXEC PGM=ASMPGM, PARM='1,2,3,4,5'

I want to capture above PARM values in my Assembler program.

thanks
Back to top
View user's profile Send private message

UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 757
Location: Germany

PostPosted: Wed Feb 27, 2008 2:08 pm    Post subject:
Reply with quote

Hi !

Your Assembler-Rrogramm will receive the Parm via Register-One.
The first HalfWord specifies the length of the Parm, passed to the programm. So the first, the programm has to do, after beeing entered, is check length and store the parm.

L R3,0(r1) ...load Parm
SR R2,R2 ...clear reg-2
LH R2,0(R3) ...load length

LTR R2,R2 ...chck length
BZ ...No_Parm

BCTR R2,0 ...length - 1
EX R2,EX_MVC ...move Parm in Field


EX_MVC MVC Parm_Field,2(R3)


Hope it helps, regards, UmeySan
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts Sr SW Eng-Rocket Software (Assembler,... Kenneth Barton Lasky Mainframe Jobs 0 Fri Aug 25, 2017 12:29 am
No new posts processing a XML file in PL/1 grvtomar PL/I & Assembler 2 Fri Jun 09, 2017 1:07 pm
No new posts Dump analysis of an assembler module monica1 PL/I & Assembler 4 Tue May 09, 2017 10:05 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us