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
 
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: 10327
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: 10327
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. 00D3003B - time outs in DB2 when invo... chavinash2004 DB2 2 Mon Oct 09, 2017 4:39 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm

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