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
 

 

How to read from the screen and write to spool in Assembler?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
p.bhaskar naidu
Currently Banned

New User


Joined: 25 Jun 2005
Posts: 11

PostPosted: Mon Jan 07, 2008 5:07 pm    Post subject: How to read from the screen and write to spool in Assembler?
Reply with quote

Hi,
Could anybody tell me what are the Assembler instructions or macros or commands to use for

1) to read the data from JCL input like Accept in cobol
2) to write the data to spool like Display in cobol

Regards
Bhaskar
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10276
Location: italy

PostPosted: Mon Jan 07, 2008 5:14 pm    Post subject: Reply to: How to read from the screen and write to spool in
Reply with quote

.... OPEN,GET,PUT,CLOSE

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT1D511/CCONTENTS?SHELF=DGT1BK33&DN=SC26-7337-01&DT=20001013144924
Back to top
View user's profile Send private message
p.bhaskar naidu
Currently Banned

New User


Joined: 25 Jun 2005
Posts: 11

PostPosted: Mon Jan 07, 2008 5:22 pm    Post subject: Reply to: How to read from the screen and write to spool in
Reply with quote

enrico-sorichetti,
i know about these instructions limitedly like GET and PUT are used only in reading from file or writing to a file.

but my requirement is..

if i write the JCL

//SYSIN DD *
1234
4567
/*

i should get this data into a assembler filed which was declared in a program.

and also i want to display some text message to spool. How can i achieve this with GET and PUT instructions?

Regards
Bhaskar
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10276
Location: italy

PostPosted: Mon Jan 07, 2008 5:30 pm    Post subject: Reply to: How to read from the screen and write to spool in
Reply with quote

device independence, that' s the buzz word

//SYSIN DD *
//SYSPRINT DD SYSOUT=

are in MVS terminology datasets/files internally managed by the initiator and JES

so any program able to read a sequential dataset with a record lenght of 80 bytes
and able to write a sequential dataset up to 150 bytes
( for pure printer datasets a 121 or 133 lrecl is recommended)

will be able to achieve what You ask for

ACCEPT/DISPLAY are just cobolese shortcuts for
open a sysin ddname, read things from there
open a sysprint/sysout dataset ( I do not remember the exact ddname) ant write to it
Back to top
View user's profile Send private message
p.bhaskar naidu
Currently Banned

New User


Joined: 25 Jun 2005
Posts: 11

PostPosted: Mon Jan 07, 2008 5:46 pm    Post subject: Reply to: How to read from the screen and write to spool in
Reply with quote

Thank you i got it.
Back to top
View user's profile Send private message
sakthi_karup

New User


Joined: 16 Feb 2007
Posts: 1
Location: london

PostPosted: Tue Jan 08, 2008 6:18 pm    Post subject: How to read from the screen and write to spool in Assembler?
Reply with quote

Hi all

please follow this in assembler coding.

USING PARM,R2 INPUT PARAMETER LIST
L R2,0(R1) ADDRESS INPUT PARAMETERS
MVC workfld,PF MOVE FMFT
DROP R2




workfld DS CL8

PARM DSECT
PL DS XL2
PF DS CL8
END
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 Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 5 Wed Jul 26, 2017 7:35 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
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
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us