Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 755
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 Asynchronous CICS Processing Question moezbud CICS 0 Mon Mar 06, 2017 6:13 pm
No new posts A not very Christmassy PL/I tale, wit... prino PL/I & Assembler 3 Mon Dec 26, 2016 1:01 am
No new posts Run stats processing on zIIP Engine Virendra Shambharkar DB2 9 Fri Oct 14, 2016 10:24 am
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us